1 ; PR1219 2 ; RUN: llc < %s -march=x86 | FileCheck %s 3 4 define i32 @test(i1 %X) { 5 ; CHECK: test: 6 ; CHECK-NOT: ret 7 ; CHECK: movl $1, %eax 8 ; CHECK: ret 9 10 %hvar2 = zext i1 %X to i32 11 %C = icmp sgt i32 %hvar2, -1 12 br i1 %C, label %cond_true15, label %cond_true 13 cond_true15: 14 ret i32 1 15 cond_true: 16 ret i32 2 17 } 18