| ; Trivial smoke test of icmp without fused branch opportunity. |
| ; RUN: %p2i -i %s --args --verbose inst | FileCheck %s |
| ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s |
| ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s |
| define void @testBool(i32 %a, i32 %b) { |
| %cmp = icmp eq i32 %a, %b |
| %cmp_ext = zext i1 %cmp to i32 |
| tail call void @use(i32 %cmp_ext) |
| ; Check that correct addressing modes are used for comparing two |
| define void @testIcmpImm() { |
| %cmp_ext = zext i1 %cmp to i32 |
| tail call void @use(i32 %cmp_ext) |
| ; CHECK-LABEL: testIcmpImm |
| ; CHECK-NOT: cmp {{[0-9]+}}, |
| ; CHECK-NOT: ICE translation error |
| ; ERRORS-NOT: ICE translation error |