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 --args --verbose none | FileCheck %s | 3 ; RUN: %p2i -i %s --args --verbose none | FileCheck %s |
4 | 4 |
5 ; Check that correct addressing modes are used for comparing two | 5 ; Check that correct addressing modes are used for comparing two |
6 ; immediates. | 6 ; immediates. |
7 define void @testIcmpImm() { | 7 define void @testIcmpImm() { |
8 entry: | 8 entry: |
9 %cmp = icmp eq i32 1, 2 | 9 %cmp = icmp eq i32 1, 2 |
10 %cmp_ext = zext i1 %cmp to i32 | 10 %cmp_ext = zext i1 %cmp to i32 |
11 tail call void @use(i32 %cmp_ext) | 11 tail call void @use(i32 %cmp_ext) |
12 ret void | 12 ret void |
13 } | 13 } |
14 ; CHECK-LABEL: testIcmpImm | 14 ; CHECK-LABEL: testIcmpImm |
15 ; CHECK-NOT: cmp {{[0-9]+}}, | 15 ; CHECK-NOT: cmp 0x{{[0-9]+}}, |
16 | 16 |
17 declare void @use(i32) | 17 declare void @use(i32) |
OLD | NEW |