The following C code void foo() { unsigned short _cw; __asm__ volatile ("fnstcw %0;": "=m" (_cw)); __asm__ volatile ("fldcw %0;" : : "m" (_cw)); }
produces with gcc -mintel-syntax .file "asm.c" .intel_syntax .text .globl _foo .def _foo; .scl 2; .type 32; .endef _foo: push ebp mov ebp, esp sub esp, 16 /APP fnstcw WORD PTR [ebp-2]; fldcw WORD PTR [ebp-2]; /NO_APP leave ret as (2.15.94 20050118) emits an error assembling this asm.s: Assembler messages: asm.s:11: Error: suffix or operands invalid for `fnstcw' asm.s:12: Error: suffix or operands invalid for `fldcw' Earlier version of as (GNU assembler 2.15.91 20040904) handled the code without an error report. AT&T syntax works fine. Danny -- Summary: intel syntax vs 'fnstcw ' and 'fldcw' Product: binutils Version: 2.15 Status: NEW Severity: normal Priority: P2 Component: gas AssignedTo: unassigned at sources dot redhat dot com ReportedBy: dannysmith at users dot sourceforge dot net CC: bug-binutils at gnu dot org,jbeulich at novell dot com GCC build triplet: i685-pc-mingw32 GCC host triplet: i685-pc-mingw32 GCC target triplet: i685-pc-mingw32 http://sources.redhat.com/bugzilla/show_bug.cgi?id=707 ------- 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