tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Assembly instructions like "foo.bar"


From: grischka
Subject: Re: [Tinycc-devel] Assembly instructions like "foo.bar"
Date: Thu, 21 Jan 2021 21:43:54 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Danny Milosavljevic wrote:
For the remaining patches, I'd like to ask you how to implement instructions
with a dot suffix, for example:

  vmul.f32 s0, s1

So I tried to add them like

 DEF(TOK_ASM_ ## x ## _ ## y, #x "." #y)

instead--but those token are not detected by tcc at runtime.

I suspect that's because '.' is not in the accepted set of characters for
a keyword token.

Nope, it is for asm.  See tccpp.c:preprocess_start()
    set_idnum('.', is_asm ? IS_ID : 0);

Btw, the msvc compiler does not understand
    {} as an initializer (in asm_data_processing_opcode())
and also not
    'return' with a void value (in asm_opcode());

---grischka




reply via email to

[Prev in Thread] Current Thread [Next in Thread]