2007-02-24 02:08:00 +00:00
|
|
|
; PR1219
|
2011-07-02 20:43:01 +00:00
|
|
|
; RUN: llc < %s -march=x86 | FileCheck %s
|
2007-02-24 02:08:00 +00:00
|
|
|
|
|
|
|
define i32 @test(i1 %X) {
|
2013-07-13 20:38:47 +00:00
|
|
|
; CHECK-LABEL: test:
|
2011-07-02 20:43:01 +00:00
|
|
|
; CHECK-NOT: ret
|
|
|
|
; CHECK: movl $1, %eax
|
|
|
|
; CHECK: ret
|
|
|
|
|
|
|
|
%hvar2 = zext i1 %X to i32
|
2007-02-24 02:08:00 +00:00
|
|
|
%C = icmp sgt i32 %hvar2, -1
|
|
|
|
br i1 %C, label %cond_true15, label %cond_true
|
|
|
|
cond_true15:
|
2011-07-02 20:43:01 +00:00
|
|
|
ret i32 1
|
2007-02-24 02:08:00 +00:00
|
|
|
cond_true:
|
2011-07-02 20:43:01 +00:00
|
|
|
ret i32 2
|
2007-02-24 02:08:00 +00:00
|
|
|
}
|