[Bug target/12308] '387 mode switching clobbers flags
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Oct 5 17:28:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-05 17:28 -------
Actually this is fixed on the mainline already:
fnstcw -2(%ebp)
movw -2(%ebp), %ax
movb $12, %ah
movw %ax, -4(%ebp)
sbbl %edx, %edx
fldcw -4(%ebp)
Note no use of orb, instead it uses movb.
More information about the Gcc-bugs
mailing list