Why isn't 'w' suffix allowed on FP instructions with 16bit integer operand?

H. J. Lu hjl@lucon.org
Sun Oct 29 08:17:00 GMT 2006


See

http://sources.redhat.com/bugzilla/show_bug.cgi?id=3431

[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'

We allow 's' instead of 'w'. Should we also allow 'w'?


H.J.



More information about the Binutils mailing list