summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/vec_insert-4.ll (renamed from llvm/test/CodeGen/X86/vec_insert_4.ll)0
-rw-r--r--llvm/test/CodeGen/X86/vec_insert-9.ll9
-rw-r--r--llvm/test/CodeGen/X86/vec_set.ll2
-rw-r--r--llvm/test/CodeGen/X86/vec_shuffle.ll3
4 files changed, 12 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/vec_insert_4.ll b/llvm/test/CodeGen/X86/vec_insert-4.ll
index 2c31e56b4af..2c31e56b4af 100644
--- a/llvm/test/CodeGen/X86/vec_insert_4.ll
+++ b/llvm/test/CodeGen/X86/vec_insert-4.ll
diff --git a/llvm/test/CodeGen/X86/vec_insert-9.ll b/llvm/test/CodeGen/X86/vec_insert-9.ll
new file mode 100644
index 00000000000..2e829df1f8d
--- /dev/null
+++ b/llvm/test/CodeGen/X86/vec_insert-9.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -march=x86 -mattr=+sse41 > %t
+; RUN: grep pinsrd %t | count 2
+
+define <4 x i32> @var_insert2(<4 x i32> %x, i32 %val, i32 %idx) nounwind {
+entry:
+ %tmp3 = insertelement <4 x i32> undef, i32 %val, i32 0 ; <<4 x i32>> [#uses=1]
+ %tmp4 = insertelement <4 x i32> %tmp3, i32 %idx, i32 3 ; <<4 x i32>> [#uses=1]
+ ret <4 x i32> %tmp4
+}
diff --git a/llvm/test/CodeGen/X86/vec_set.ll b/llvm/test/CodeGen/X86/vec_set.ll
index c316df887c1..7f5f8dd213a 100644
--- a/llvm/test/CodeGen/X86/vec_set.ll
+++ b/llvm/test/CodeGen/X86/vec_set.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mattr=+sse2 | grep punpckl | count 7
+; RUN: llc < %s -march=x86 -mattr=+sse2,-sse41 | grep punpckl | count 7
define void @test(<8 x i16>* %b, i16 %a0, i16 %a1, i16 %a2, i16 %a3, i16 %a4, i16 %a5, i16 %a6, i16 %a7) nounwind {
%tmp = insertelement <8 x i16> zeroinitializer, i16 %a0, i32 0 ; <<8 x i16>> [#uses=1]
diff --git a/llvm/test/CodeGen/X86/vec_shuffle.ll b/llvm/test/CodeGen/X86/vec_shuffle.ll
index c05b79a54a1..2a48de22098 100644
--- a/llvm/test/CodeGen/X86/vec_shuffle.ll
+++ b/llvm/test/CodeGen/X86/vec_shuffle.ll
@@ -1,5 +1,6 @@
; RUN: llc < %s -march=x86 -mcpu=core2 -o %t
-; RUN: grep shufp %t | count 1
+; RUN: grep movq %t | count 1
+; RUN: grep pshufd %t | count 1
; RUN: grep movupd %t | count 1
; RUN: grep pshufhw %t | count 1
OpenPOWER on IntegriCloud