[LLVMbugs] [Bug 6614] New: SSE intrinsics: _mm_setpd and _mm_setr_pd backwards
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Mar 14 10:55:01 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6614
Summary: SSE intrinsics: _mm_setpd and _mm_setr_pd backwards
Product: clang
Version: 2.6
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jed at 59a2.org
CC: llvmbugs at cs.uiuc.edu
$ cat c.c
#include <stdio.h>
#include <emmintrin.h>
int main(void) {
double a[2],b[2];
__m128d x = _mm_set_pd(2,3), y = _mm_setr_pd(5,7);
_mm_storeu_pd(a,x);
_mm_storeu_pd(b,y);
printf("%f %f\n",a[0],a[1]);
printf("%f %f\n",b[0],b[1]);
return 0;
}
$ gcc -march=core2 c.c && ./a.out # correct
3.000000 2.000000
5.000000 7.000000
$ clang -march=core2 c.c && ./a.out # wrong
2.000000 3.000000
7.000000 5.000000
$ clang --version
clang version 1.0 (https://llvm.org/svn/llvm-project/cfe/branches/release_26 )
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ uname -a
Linux kunyang 2.6.32-ARCH #1 SMP PREEMPT Tue Feb 23 19:43:46 CET 2010 x86_64
Intel(R) Core(TM)2 Duo CPU P8700 @ 2.53GHz GenuineIntel GNU/Linux
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list