This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/37158] New: Wrong insn for _mm_comieq_sd
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Aug 2008 05:11:47 -0000
- Subject: [Bug target/37158] New: Wrong insn for _mm_comieq_sd
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[hjl@gnu-6 i386]$ cat x.c
/* { dg-do run } */
/* { dg-options "-O2 -msse2" } */
#include <emmintrin.h>
int
test (__m128d s1, __m128d s2)
{
return _mm_comieq_sd (s1, s2);
}
[hjl@gnu-6 i386]$ ./usr/gcc-4.4/bin/gcc -S -O2 x.c
[hjl@gnu-6 i386]$ cat x.s
.file "x.c"
.text
.p2align 4,,15
.globl test
.type test, @function
test:
.LFB518:
xorl %eax, %eax
ucomisd %xmm1, %xmm0
sete %al
ret
It should be "comisd %xmm1, %xmm0".
--
Summary: Wrong insn for _mm_comieq_sd
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37158