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