summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/avx.ll
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2014-05-19 04:47:12 +0000
committerFilipe Cabecinhas <me@filcab.net>2014-05-19 04:47:12 +0000
commitcc8c96c1335af3c23a78cf3dbc3690316d43abe8 (patch)
treeafee46e6ca40e296a5fa000a912c45395f5231c1 /llvm/test/CodeGen/X86/avx.ll
parent2fd026207fdebf5490d58bb444eaf7765c323f13 (diff)
downloadbcm5719-llvm-cc8c96c1335af3c23a78cf3dbc3690316d43abe8.tar.gz
bcm5719-llvm-cc8c96c1335af3c23a78cf3dbc3690316d43abe8.zip
Change the blend tests to AVX, not AVX2.
llvm-svn: 209107
Diffstat (limited to 'llvm/test/CodeGen/X86/avx.ll')
-rw-r--r--llvm/test/CodeGen/X86/avx.ll25
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx.ll b/llvm/test/CodeGen/X86/avx.ll
new file mode 100644
index 00000000000..208e3844f11
--- /dev/null
+++ b/llvm/test/CodeGen/X86/avx.ll
@@ -0,0 +1,25 @@
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx | FileCheck %s
+
+define <4 x i32> @blendvb_fallback_v4i32(<4 x i1> %mask, <4 x i32> %x, <4 x i32> %y) {
+; CHECK-LABEL: @blendvb_fallback_v4i32
+; CHECK: vblendvps
+; CHECK: ret
+ %ret = select <4 x i1> %mask, <4 x i32> %x, <4 x i32> %y
+ ret <4 x i32> %ret
+}
+
+define <8 x i32> @blendvb_fallback_v8i32(<8 x i1> %mask, <8 x i32> %x, <8 x i32> %y) {
+; CHECK-LABEL: @blendvb_fallback_v8i32
+; CHECK: vblendvps
+; CHECK: ret
+ %ret = select <8 x i1> %mask, <8 x i32> %x, <8 x i32> %y
+ ret <8 x i32> %ret
+}
+
+define <8 x float> @blendvb_fallback_v8f32(<8 x i1> %mask, <8 x float> %x, <8 x float> %y) {
+; CHECK-LABEL: @blendvb_fallback_v8f32
+; CHECK: vblendvps
+; CHECK: ret
+ %ret = select <8 x i1> %mask, <8 x float> %x, <8 x float> %y
+ ret <8 x float> %ret
+}
OpenPOWER on IntegriCloud