add select i1 test, reproduser pr30249.

llvm-svn: 281218
This commit is contained in:
Igor Breger 2016-09-12 15:27:02 +00:00
parent 3151dec7f1
commit a3e36da6f2
1 changed files with 12 additions and 0 deletions

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
}