add select i1 test, reproduser pr30249.
authorIgor Breger <igor.breger@intel.com>
Mon, 12 Sep 2016 15:27:02 +0000 (15:27 +0000)
committerIgor Breger <igor.breger@intel.com>
Mon, 12 Sep 2016 15:27:02 +0000 (15:27 +0000)
llvm-svn: 281218

llvm/test/CodeGen/X86/avx512-select.ll

index a3709c3..80026e5 100644 (file)
@@ -146,3 +146,15 @@ define i8 @select07(i8 %a.0, i8 %b.0, i8 %m) {
   %res = bitcast <8 x i1> %r to i8
   ret i8 %res;
 }
+
+define i64 @pr30249() {
+; CHECK-LABEL: pr30249:
+; CHECK:       ## BB#0:
+; CHECK-NEXT:    xorl %ecx, %ecx
+; CHECK-NEXT:    cmpb $1, %cl
+; CHECK-NEXT:    movl $1, %eax
+; CHECK-NEXT:    adcxq %rcx, %rax
+; CHECK-NEXT:    retq
+  %v = select i1 undef , i64 1, i64 2
+  ret i64 %v
+}