Bug 3431

Summary: 'w' suffix isn't allowed on FP instructions with 16bit integer operand
Product: binutils Reporter: H.J. Lu <hjl.tools>
Component: gasAssignee: unassigned
Status: RESOLVED INVALID    
Severity: normal CC: bug-binutils
Priority: P2    
Version: 2.18   
Target Milestone: ---   
Host: Target: i686-pc-linux-gnu
Build: Last reconfirmed:

Description H.J. Lu 2006-10-27 22:55:07 UTC
[hjl@gnu-13 intel-1]$ cat bar.s
        ficomw (%esp)
        ficompw (%esp)
        fildw   (%esp)
        fistw   (%esp)
        fistpw    (%esp)
        fisttpw (%esp)
[hjl@gnu-13 intel-1]$ gcc -c bar.s
bar.s: Assembler messages:
bar.s:1: Error: suffix or operands invalid for `ficom'
bar.s:2: Error: suffix or operands invalid for `ficomp'
bar.s:3: Error: suffix or operands invalid for `fild'
bar.s:4: Error: suffix or operands invalid for `fist'
bar.s:5: Error: suffix or operands invalid for `fistp'
bar.s:6: Error: suffix or operands invalid for `fisttp'
[hjl@gnu-13 intel-1]$
Comment 1 H.J. Lu 2006-10-28 14:36:01 UTC
It is done on purpose.
Comment 2 Christopher Jensen 2006-11-13 15:01:19 UTC
(In reply to comment #1)
> It is done on purpose.

Why is this is done on purpose ?
Comment 3 H.J. Lu 2006-11-13 17:30:48 UTC
That is what AT&T assembly syntax specifies and what gcc generates.