diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-09 01:05:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-09 01:05:04 +0000 |
commit | 62098040a15b492561ca59a8dc6b56d14c0859bf (patch) | |
tree | 9345e214b97b94632fbd530f2c67921f64b3fe66 /test/CodeGen/X86/vec_set-A.ll | |
parent | 8aca4b13a896ba74456cb1c96229495fd8c31178 (diff) | |
download | external_llvm-62098040a15b492561ca59a8dc6b56d14c0859bf.zip external_llvm-62098040a15b492561ca59a8dc6b56d14c0859bf.tar.gz external_llvm-62098040a15b492561ca59a8dc6b56d14c0859bf.tar.bz2 |
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
Diffstat (limited to 'test/CodeGen/X86/vec_set-A.ll')
-rw-r--r-- | test/CodeGen/X86/vec_set-A.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_set-A.ll b/test/CodeGen/X86/vec_set-A.ll new file mode 100644 index 0000000..d161d68 --- /dev/null +++ b/test/CodeGen/X86/vec_set-A.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | llc -march=x86 | grep {movl.*\$1, %} +define <2 x i64> @test1() { +entry: + ret <2 x i64> < i64 1, i64 0 > +} + |