cat ./test.s ; ./as --32 -al -o test.o test.s
.intel_syntax noprefix
mov [rax],eax
GAS LISTING test.s page 1
1 .intel_syntax noprefix
2 0000 A3000000 mov [rax],eax
2 00
because for AT&T syntax GAS correctly complains:
cat ./test.s ; ./as --32 -al -o test.o test.s
mov %eax,(%rax)
test.s: Assembler messages:
test.s:1: Error: bad register name `%rax)'
GAS LISTING test.s page 1
1 mov %eax,(%rax)
./as -v
GNU assembler version 2.17.50 (x86_64-unknown-linux-gnu) using BFD version
2.17.50 20070222
--
Summary: GAS allows using 64-bit regs in 32-bit mode (Intel
syntax)
Product: binutils
Version: 2.17
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: artyom dot yakimov at intel dot com
CC: bug-binutils at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=4089
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils