diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-05-08 22:35:02 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-05-08 22:35:02 +0000 |
commit | fd17f42bab8786850a9f8b2f84908b30598b160b (patch) | |
tree | a41ed3d421829abdc3cbb80327875fb5d6aac3a8 /test | |
parent | 748118d8aa8a66597437e6970ab389c988bbdb8b (diff) | |
download | llvm-fd17f42bab8786850a9f8b2f84908b30598b160b.tar.gz llvm-fd17f42bab8786850a9f8b2f84908b30598b160b.tar.bz2 llvm-fd17f42bab8786850a9f8b2f84908b30598b160b.tar.xz |
Use movq to move low half of XMM register and zero-extend the rest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/vec_set-E.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_set-E.ll b/test/CodeGen/X86/vec_set-E.ll new file mode 100644 index 0000000000..9dc193299e --- /dev/null +++ b/test/CodeGen/X86/vec_set-E.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movq + +define i32 @t(float %X) nounwind { + %tmp11 = insertelement <4 x float> undef, float %X, i32 0 + %tmp12 = insertelement <4 x float> %tmp11, float %X, i32 1 + %tmp27 = insertelement <4 x float> %tmp12, float 0.000000e+00, i32 2 + %tmp28 = insertelement <4 x float> %tmp27, float 0.000000e+00, i32 3 + store <4 x float> %tmp28, <4 x float>* null, align 16 + ret i32 0 +} |