All patterns that insert mode switching code via LCM should be marked as clobbering the flags. fix_trunc* patterns were fixed by PR12308, but floordf, floorsf, floorxf, ceildf, ceilsf, ceilxf, btruncdf, btruncsf, btruncxf, nearbyintdf, nearbyintsf and nearbyintxf should still be fixed.
Actually, all patterns that set ix86_optimize_mode_switching = 1 needs to be marked as clobbering the flags. -- Summary: 387 mode switching clobbers flags Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: uros at kss-loka dot si CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i386-pc-linux-gnu GCC host triplet: i386-pc-linux-gnu GCC target triplet: i386-pc-linux-gnu BugsThisDependsOn: 12308 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20421