| ; Simple test of non-fused compare/branch. |
| ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 \ |
| ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 \ |
| ; RUN: | FileCheck --check-prefix=OPTM1 %s |
| define void @testBool(i32 %a, i32 %b) { |
| %cmp = icmp slt i32 %a, %b |
| %cmp1 = icmp sgt i32 %a, %b |
| br i1 %cmp, label %if.then, label %if.end |
| if.then: ; preds = %entry |
| %cmp_ext = zext i1 %cmp to i32 |
| tail call void @use(i32 %cmp_ext) |
| if.end: ; preds = %if.then, %entry |
| br i1 %cmp1, label %if.then5, label %if.end7 |
| if.then5: ; preds = %if.end |
| %cmp1_ext = zext i1 %cmp1 to i32 |
| tail call void @use(i32 %cmp1_ext) |
| if.end7: ; preds = %if.then5, %if.end |