OLD | NEW |
1 ; Tests that we name unnamed global addresses. | 1 ; Tests that we name unnamed global addresses. |
2 | 2 |
| 3 ; REQUIRES: allow_dump |
| 4 |
3 ; Check that Subzero's bitcode reader handles renaming correctly. | 5 ; Check that Subzero's bitcode reader handles renaming correctly. |
4 ; RUN: %p2i --no-local-syms -i %s --insts | FileCheck %s | 6 ; RUN: %p2i --no-local-syms -i %s --insts | FileCheck %s |
5 ; RUN: %l2i --no-local-syms -i %s --insts | %ifl FileCheck %s | 7 ; RUN: %l2i --no-local-syms -i %s --insts | %ifl FileCheck %s |
6 | 8 |
7 ; RUN: %l2i --no-local-syms -i %s --insts --args --exit-success \ | 9 ; RUN: %l2i --no-local-syms -i %s --insts --args --exit-success \ |
8 ; RUN: -default-function-prefix=h -default-global-prefix=g \ | 10 ; RUN: -default-function-prefix=h -default-global-prefix=g \ |
9 ; RUN: | %ifl FileCheck --check-prefix=BAD %s | 11 ; RUN: | %ifl FileCheck --check-prefix=BAD %s |
10 | 12 |
11 ; RUN: %p2i --no-local-syms -i %s --insts --args --exit-success \ | 13 ; RUN: %p2i --no-local-syms -i %s --insts --args --exit-success \ |
12 ; RUN: -default-function-prefix=h -default-global-prefix=g \ | 14 ; RUN: -default-function-prefix=h -default-global-prefix=g \ |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 59 |
58 ; CHECK-NEXT: define void @h5() { | 60 ; CHECK-NEXT: define void @h5() { |
59 ; CHECK-NEXT: __0: | 61 ; CHECK-NEXT: __0: |
60 ; CHECK-NEXT: ret void | 62 ; CHECK-NEXT: ret void |
61 ; CHECK-NEXT: } | 63 ; CHECK-NEXT: } |
62 | 64 |
63 ; BAD: Warning : Default global prefix 'g' potentially conflicts with name 'g'. | 65 ; BAD: Warning : Default global prefix 'g' potentially conflicts with name 'g'. |
64 ; BAD: Warning : Default function prefix 'h' potentially conflicts with name 'h5
'. | 66 ; BAD: Warning : Default function prefix 'h' potentially conflicts with name 'h5
'. |
65 | 67 |
66 ; NOIR: Total across all functions | 68 ; NOIR: Total across all functions |
OLD | NEW |