On 19.01.2024 02:42, LIU Hao wrote: > In addition, `as -msyntax=intel -mnaked-reg` doesn't seem to be equivalent to > `.intel_syntax noprefix`: > > $ as -msyntax=intel -mnaked-reg <<< 'mov eax, DWORD PTR gs:0x48' -o a.o > {standard input}: Assembler messages: > {standard input}:1: Error: invalid use of register > > $ as <<< '.intel_syntax noprefix; mov eax, DWORD PTR gs:0x48' -o a.o && > objdump -Mintel -d a.o > ... > 0000000000000000 <.text>: > 0: 65 8b 04 25 48 00 00 mov eax,DWORD PTR gs:0x48
This (the error above) looks like a bug to me; I'll look into where this odd difference in behavior is coming from. Jan