summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorCameron McInally <cameron.mcinally@nyu.edu>2013-12-04 14:52:33 +0000
committerCameron McInally <cameron.mcinally@nyu.edu>2013-12-04 14:52:33 +0000
commit80955805e47f79a616ad1459bfdbb767ff036ed6 (patch)
tree89479ce4ccce8e06ae652a44dba3ecd0f808e928 /test/CodeGen
parent84677400010d04421204d6a0bc617565835c337d (diff)
downloadllvm-80955805e47f79a616ad1459bfdbb767ff036ed6.tar.gz
llvm-80955805e47f79a616ad1459bfdbb767ff036ed6.tar.bz2
llvm-80955805e47f79a616ad1459bfdbb767ff036ed6.tar.xz
Suppress '(x < y) ? a : 0 -> (x < y) & a' transform on X86 architectures with dedicated mask registers.
Patch by Aleksey Bader. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/avx512-vselect-crash.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx512-vselect-crash.ll b/test/CodeGen/X86/avx512-vselect-crash.ll
new file mode 100644
index 0000000000..7cca51d5e2
--- /dev/null
+++ b/test/CodeGen/X86/avx512-vselect-crash.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
+
+; CHECK-LABEL: test
+; CHECK: vmovdqu32
+; CHECK: ret
+define <16 x i32> @test() {
+entry:
+ %0 = icmp slt <16 x i32> undef, undef
+ %1 = select <16 x i1> %0, <16 x i32> undef, <16 x i32> zeroinitializer
+ ret <16 x i32> %1
+}