Hi!

I have problems with Intel syntax in GAS.

Intel syntax usually uses form "and rax, 99h". GAS does not accept it.
Gives message: "Error: junk `h' after expression". So, i use form "and rax,
0x99". It is not problem - i like this form more. The problem is next:

GAS accepts this: "and rax, 0xFFFFFFFFF4FFFFFF", but does not accept
following: "and rax, 0xFFFFFFFF4FFFFFFF". Says: "Error: suffix or operands
invalid for `and'". I can not understand why this problem appears near the
4-bytes boundary. It looks like bug.

I attached asm file to e-mail.
.intel_syntax noprefix

.text

#--------------------------------------------------------------------------------------------------------------------------------------------------------------
# proc some_proc();
#--------------------------------------------------------------------------------------------------------------------------------------------------------------
        .global some_proc
        some_proc:

                #This one is OK
                #and rax, 0xFFFFFFFFF4FFFFFF

                #This one has problem with assembling: "Error: suffix or 
operands invalid for `and'"
                and rax, 0xFFFFFFFF4FFFFFFF

                ret

#--------------------------------------------------------------------------------------------------------------------------------------------------------------

.end







Attachment: dmesg
Description: Binary data

Attachment: dmesg.boot
Description: Binary data

Reply via email to