Bug 3431 - 'w' suffix isn't allowed on FP instructions with 16bit integer operand
Summary: 'w' suffix isn't allowed on FP instructions with 16bit integer operand
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.18
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-27 22:55 UTC by H.J. Lu
Modified: 2006-11-13 17:30 UTC (History)
1 user (show)

See Also:
Host:
Target: i686-pc-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.