diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-05-13 00:54:02 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-05-13 00:54:02 +0000 |
commit | fa7fd33a2636a663c69cc9ba56b01821c74da637 (patch) | |
tree | 17853ab89857afed2f407824a083b439141ee5f4 /test/CodeGen/X86/vec_set-H.ll | |
parent | 844731a7f1909f55935e3514c9e713a62d67662e (diff) |
On x86, it's safe to treat i32 load anyext as a normal i32 load. Ditto for i8 anyext load to i16.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51019 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_set-H.ll')
-rw-r--r-- | test/CodeGen/X86/vec_set-H.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_set-H.ll b/test/CodeGen/X86/vec_set-H.ll new file mode 100644 index 0000000000..ea7b85355c --- /dev/null +++ b/test/CodeGen/X86/vec_set-H.ll @@ -0,0 +1,15 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep movz + +define <2 x i64> @doload64(i16 signext %x) nounwind { +entry: + %tmp36 = insertelement <8 x i16> undef, i16 %x, i32 0 ; <<8 x i16>> [#uses=1] + %tmp37 = insertelement <8 x i16> %tmp36, i16 %x, i32 1 ; <<8 x i16>> [#uses=1] + %tmp38 = insertelement <8 x i16> %tmp37, i16 %x, i32 2 ; <<8 x i16>> [#uses=1] + %tmp39 = insertelement <8 x i16> %tmp38, i16 %x, i32 3 ; <<8 x i16>> [#uses=1] + %tmp40 = insertelement <8 x i16> %tmp39, i16 %x, i32 4 ; <<8 x i16>> [#uses=1] + %tmp41 = insertelement <8 x i16> %tmp40, i16 %x, i32 5 ; <<8 x i16>> [#uses=1] + %tmp42 = insertelement <8 x i16> %tmp41, i16 %x, i32 6 ; <<8 x i16>> [#uses=1] + %tmp43 = insertelement <8 x i16> %tmp42, i16 %x, i32 7 ; <<8 x i16>> [#uses=1] + %tmp46 = bitcast <8 x i16> %tmp43 to <2 x i64> ; <<2 x i64>> [#uses=1] + ret <2 x i64> %tmp46 +} |