| OLD | NEW |
| 1 ; Trivial smoke test of icmp without fused branch opportunity. | 1 ; Trivial smoke test of icmp without fused branch opportunity. |
| 2 | 2 |
| 3 ; RUN: %p2i -i %s --filetype=obj --disassemble --args | FileCheck %s | 3 ; RUN: %p2i -i %s --filetype=obj --disassemble --args \ |
| 4 ; RUN: -allow-externally-defined-symbols | FileCheck %s |
| 4 | 5 |
| 5 ; Check that correct addressing modes are used for comparing two | 6 ; Check that correct addressing modes are used for comparing two |
| 6 ; immediates. | 7 ; immediates. |
| 7 define void @testIcmpImm() { | 8 define internal void @testIcmpImm() { |
| 8 entry: | 9 entry: |
| 9 %cmp = icmp eq i32 1, 2 | 10 %cmp = icmp eq i32 1, 2 |
| 10 %cmp_ext = zext i1 %cmp to i32 | 11 %cmp_ext = zext i1 %cmp to i32 |
| 11 tail call void @use(i32 %cmp_ext) | 12 tail call void @use(i32 %cmp_ext) |
| 12 ret void | 13 ret void |
| 13 } | 14 } |
| 14 ; CHECK-LABEL: testIcmpImm | 15 ; CHECK-LABEL: testIcmpImm |
| 15 ; CHECK-NOT: cmp {{[0-9]+}}, | 16 ; CHECK-NOT: cmp {{[0-9]+}}, |
| 16 | 17 |
| 17 declare void @use(i32) | 18 declare void @use(i32) |
| OLD | NEW |