add select i1 test, reproduser pr30249.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281218 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Igor Breger 2016-09-12 15:27:02 +00:00
parent 29b1dcd7fc
commit 97c0650440

View 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
}