OLD | NEW |
1 ; Tests that we name unnamed global addresses. | 1 ; Tests that we name unnamed global addresses. |
2 | 2 |
3 ; Check that the ICE converter handles renaming correctly. | 3 ; Check that Subzero's bitcode reader handles renaming correctly. |
4 ; RUN: %l2i --no-local-syms -i %s --insts | FileCheck %s | 4 ; RUN: %p2i --no-local-syms -i %s --insts | %ifp FileCheck %s |
| 5 ; RUN: %l2i --no-local-syms -i %s --insts | %ifl FileCheck %s |
5 | 6 |
6 ; RUN: %l2i --no-local-syms -i %s --insts --args --exit-success \ | 7 ; RUN: %l2i --no-local-syms -i %s --insts --args --exit-success \ |
7 ; RUN: -default-function-prefix=h -default-global-prefix=g \ | 8 ; RUN: -default-function-prefix=h -default-global-prefix=g \ |
8 ; RUN: | FileCheck --check-prefix=BAD %s | 9 ; RUN: | %ifl FileCheck --check-prefix=BAD %s |
9 | |
10 ; Check that Subzero's bitcode reader handles renaming correctly. | |
11 ; RUN: %p2i --no-local-syms -i %s --insts | FileCheck %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 \ |
15 ; RUN: | FileCheck --check-prefix=BAD %s | 13 ; RUN: | %ifp FileCheck --check-prefix=BAD %s |
16 | 14 |
17 ; TODO(kschimpf) Check global variable declarations, once generated. | 15 ; TODO(kschimpf) Check global variable declarations, once generated. |
18 | 16 |
19 @0 = internal global [4 x i8] zeroinitializer, align 4 | 17 @0 = internal global [4 x i8] zeroinitializer, align 4 |
20 @1 = internal constant [10 x i8] c"Some stuff", align 1 | 18 @1 = internal constant [10 x i8] c"Some stuff", align 1 |
21 @g = internal global [4 x i8] zeroinitializer, align 4 | 19 @g = internal global [4 x i8] zeroinitializer, align 4 |
22 | 20 |
23 define i32 @2(i32 %v) { | 21 define i32 @2(i32 %v) { |
24 ret i32 %v | 22 ret i32 %v |
25 } | 23 } |
(...skipping 26 matching lines...) Expand all Loading... |
52 ret void | 50 ret void |
53 } | 51 } |
54 | 52 |
55 ; CHECK-NEXT: define void @h5() { | 53 ; CHECK-NEXT: define void @h5() { |
56 ; CHECK-NEXT: __0: | 54 ; CHECK-NEXT: __0: |
57 ; CHECK-NEXT: ret void | 55 ; CHECK-NEXT: ret void |
58 ; CHECK-NEXT: } | 56 ; CHECK-NEXT: } |
59 | 57 |
60 ; BAD: Warning : Default global prefix 'g' potentially conflicts with name 'g'. | 58 ; BAD: Warning : Default global prefix 'g' potentially conflicts with name 'g'. |
61 ; BAD: Warning : Default function prefix 'h' potentially conflicts with name 'h5
'. | 59 ; BAD: Warning : Default function prefix 'h' potentially conflicts with name 'h5
'. |
OLD | NEW |