This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/55952] x86 FPU, unnecessary fxch instruction
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 15 Apr 2017 14:43:49 +0000
- Subject: [Bug rtl-optimization/55952] x86 FPU, unnecessary fxch instruction
- Auto-submitted: auto-generated
- References: <bug-55952-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55952
--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Latest trunk gcc generates:
flds 4(%esp)
fldz
fucomip %st(1), %st
fstp %st(0)
fld1
fchs
fld1
fcmovnbe %st(1), %st
fstp %st(1)
ret