summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/vec_splat.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-02-21 07:42:26 +0000
committerTanya Lattner <tonic@nondot.org>2008-02-21 07:42:26 +0000
commit33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e (patch)
treec8a69f1be3db80d136ec9dcc8e41d9d5affd35ad /test/CodeGen/X86/vec_splat.ll
parent7c1687c196e8dc89a4722e0463965f0b0f5f399c (diff)
downloadllvm-33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e.tar.gz
llvm-33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e.tar.bz2
llvm-33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e.tar.xz
Remove llvm-upgrade and update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_splat.ll')
-rw-r--r--test/CodeGen/X86/vec_splat.ll28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/CodeGen/X86/vec_splat.ll b/test/CodeGen/X86/vec_splat.ll
index 3d73a87f84..c6100ecd09 100644
--- a/test/CodeGen/X86/vec_splat.ll
+++ b/test/CodeGen/X86/vec_splat.ll
@@ -1,22 +1,22 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep shufps
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse3 | grep movddup
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep shufps
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse3 | grep movddup
-void %test_v4sf(<4 x float>* %P, <4 x float>* %Q, float %X) {
- %tmp = insertelement <4 x float> zeroinitializer, float %X, uint 0
- %tmp2 = insertelement <4 x float> %tmp, float %X, uint 1
- %tmp4 = insertelement <4 x float> %tmp2, float %X, uint 2
- %tmp6 = insertelement <4 x float> %tmp4, float %X, uint 3
- %tmp8 = load <4 x float>* %Q
- %tmp10 = mul <4 x float> %tmp8, %tmp6
+define void @test_v4sf(<4 x float>* %P, <4 x float>* %Q, float %X) {
+ %tmp = insertelement <4 x float> zeroinitializer, float %X, i32 0 ; <<4 x float>> [#uses=1]
+ %tmp2 = insertelement <4 x float> %tmp, float %X, i32 1 ; <<4 x float>> [#uses=1]
+ %tmp4 = insertelement <4 x float> %tmp2, float %X, i32 2 ; <<4 x float>> [#uses=1]
+ %tmp6 = insertelement <4 x float> %tmp4, float %X, i32 3 ; <<4 x float>> [#uses=1]
+ %tmp8 = load <4 x float>* %Q ; <<4 x float>> [#uses=1]
+ %tmp10 = mul <4 x float> %tmp8, %tmp6 ; <<4 x float>> [#uses=1]
store <4 x float> %tmp10, <4 x float>* %P
ret void
}
-void %test_v2sd(<2 x double>* %P, <2 x double>* %Q, double %X) {
- %tmp = insertelement <2 x double> zeroinitializer, double %X, uint 0
- %tmp2 = insertelement <2 x double> %tmp, double %X, uint 1
- %tmp4 = load <2 x double>* %Q
- %tmp6 = mul <2 x double> %tmp4, %tmp2
+define void @test_v2sd(<2 x double>* %P, <2 x double>* %Q, double %X) {
+ %tmp = insertelement <2 x double> zeroinitializer, double %X, i32 0 ; <<2 x double>> [#uses=1]
+ %tmp2 = insertelement <2 x double> %tmp, double %X, i32 1 ; <<2 x double>> [#uses=1]
+ %tmp4 = load <2 x double>* %Q ; <<2 x double>> [#uses=1]
+ %tmp6 = mul <2 x double> %tmp4, %tmp2 ; <<2 x double>> [#uses=1]
store <2 x double> %tmp6, <2 x double>* %P
ret void
}