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