[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/707] New: intel syntax vs 'fnstcw ' and 'fldcw'
From: |
dannysmith at users dot sourceforge dot net |
Subject: |
[Bug gas/707] New: intel syntax vs 'fnstcw ' and 'fldcw' |
Date: |
8 Feb 2005 06:08:40 -0000 |
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 gas/707] New: intel syntax vs 'fnstcw ' and 'fldcw',
dannysmith at users dot sourceforge dot net <=