diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2011-11-09 13:21:28 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-11-09 13:21:28 +0000 |
commit | 79135d844d0183a4d23610583167d4323b723314 (patch) | |
tree | 756c3e5e0ab6fc47509869d6727005d4f1a5dfd6 /llvm/test/CodeGen/X86/avx2-logic.ll | |
parent | 6312682b46b3ecdd8a7b7dc02e0667aaead3e3da (diff) | |
download | bcm5719-llvm-79135d844d0183a4d23610583167d4323b723314.tar.gz bcm5719-llvm-79135d844d0183a4d23610583167d4323b723314.zip |
Add AVX2 support for vselect of v32i8
llvm-svn: 144187
Diffstat (limited to 'llvm/test/CodeGen/X86/avx2-logic.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/avx2-logic.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx2-logic.ll b/llvm/test/CodeGen/X86/avx2-logic.ll index a763bc0010c..944849cf4ff 100644 --- a/llvm/test/CodeGen/X86/avx2-logic.ll +++ b/llvm/test/CodeGen/X86/avx2-logic.ll @@ -1,6 +1,8 @@ ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=core-avx2 -mattr=+avx2 | FileCheck %s +; CHECK: vpandn ; CHECK: vpandn %ymm +; CHECK: ret define <4 x i64> @vpandn(<4 x i64> %a, <4 x i64> %b) nounwind uwtable readnone ssp { entry: ; Force the execution domain with an add. @@ -10,7 +12,9 @@ entry: ret <4 x i64> %x } +; CHECK: vpand ; CHECK: vpand %ymm +; CHECK: ret define <4 x i64> @vpand(<4 x i64> %a, <4 x i64> %b) nounwind uwtable readnone ssp { entry: ; Force the execution domain with an add. @@ -19,7 +23,9 @@ entry: ret <4 x i64> %x } +; CHECK: vpor ; CHECK: vpor %ymm +; CHECK: ret define <4 x i64> @vpor(<4 x i64> %a, <4 x i64> %b) nounwind uwtable readnone ssp { entry: ; Force the execution domain with an add. @@ -28,7 +34,9 @@ entry: ret <4 x i64> %x } +; CHECK: vpxor ; CHECK: vpxor %ymm +; CHECK: ret define <4 x i64> @vpxor(<4 x i64> %a, <4 x i64> %b) nounwind uwtable readnone ssp { entry: ; Force the execution domain with an add. @@ -36,3 +44,14 @@ entry: %x = xor <4 x i64> %a2, %b ret <4 x i64> %x } + + + +; CHECK: vpblendvb +; CHECK: vpblendvb %ymm +; CHECK: ret +define <32 x i8> @vpblendvb(<32 x i8> %x, <32 x i8> %y) { + %min_is_x = icmp ult <32 x i8> %x, %y + %min = select <32 x i1> %min_is_x, <32 x i8> %x, <32 x i8> %y + ret <32 x i8> %min +} |