diff options
author | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2013-10-31 13:15:32 +0000 |
---|---|---|
committer | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2013-10-31 13:15:32 +0000 |
commit | f3280b5860734b367cdcdd9909a7f4f4645369fc (patch) | |
tree | cb6132cc84ecde5f4a77fe22876ddacfa2dc255d /test/CodeGen/X86 | |
parent | 793ce99ea79b2a51a9ace18adcae60678efaae9e (diff) | |
download | external_llvm-f3280b5860734b367cdcdd9909a7f4f4645369fc.zip external_llvm-f3280b5860734b367cdcdd9909a7f4f4645369fc.tar.gz external_llvm-f3280b5860734b367cdcdd9909a7f4f4645369fc.tar.bz2 |
AVX-512: Implemented CMOV for 512-bit vectors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r-- | test/CodeGen/X86/avx512-select.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx512-select.ll b/test/CodeGen/X86/avx512-select.ll new file mode 100644 index 0000000..d2d6681 --- /dev/null +++ b/test/CodeGen/X86/avx512-select.ll @@ -0,0 +1,22 @@ +; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s + +; CHECK-LABEL: select00 +; CHECK: vmovaps +; CHECK-NEXT: LBB +define <16 x i32> @select00(i32 %a, <16 x i32> %b) nounwind { + %cmpres = icmp eq i32 %a, 255 + %selres = select i1 %cmpres, <16 x i32> zeroinitializer, <16 x i32> %b + %res = xor <16 x i32> %b, %selres + ret <16 x i32> %res +} + +; CHECK-LABEL: select01 +; CHECK: vmovaps +; CHECK-NEXT: LBB +define <8 x i64> @select01(i32 %a, <8 x i64> %b) nounwind { + %cmpres = icmp eq i32 %a, 255 + %selres = select i1 %cmpres, <8 x i64> zeroinitializer, <8 x i64> %b + %res = xor <8 x i64> %b, %selres + ret <8 x i64> %res +} + |