2008-03-10 17:33:57 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep {movl.*\$1, %}
|
2008-05-07 22:59:08 +00:00
|
|
|
define <2 x i64> @test1() nounwind {
|
Implement a readme entry, compiling
#include <xmmintrin.h>
__m128i doload64(short x) {return _mm_set_epi16(0,0,0,0,0,0,0,1);}
into:
movl $1, %eax
movd %eax, %xmm0
ret
instead of a constant pool load.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48063 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-09 01:05:04 +00:00
|
|
|
entry:
|
|
|
|
ret <2 x i64> < i64 1, i64 0 >
|
|
|
|
}
|
|
|
|
|