This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/37158] Wrong insn for _mm_comieq_sd
- From: "Joey dot ye at intel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Aug 2008 08:19:13 -0000
- Subject: [Bug target/37158] Wrong insn for _mm_comieq_sd
- References: <bug-37158-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from Joey dot ye at intel dot com 2008-08-19 08:19 -------
Check out such code in i386.c:
/* Figure out whether to use ordered or unordered fp comparisons.
Return the appropriate mode to use. */
enum machine_mode
ix86_fp_compare_mode (enum rtx_code code ATTRIBUTE_UNUSED)
{
/* ??? In order to make all comparisons reversible, we do all comparisons
non-trapping when compiling for IEEE. Once gcc is able to distinguish
all forms trapping and nontrapping comparisons, we can make inequality
comparisons trapping again, since it results in better code when using
FCOM based compares. */
return TARGET_IEEE_FP ? CCFPUmode : CCFPmode;
}
--
Joey dot ye at intel dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary| Wrong insn for |Wrong insn for _mm_comieq_sd
|_mm_comieq_sd |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37158