OLD | NEW |
1 ; Tests that we name unnamed global addresses. | 1 ; Tests that we name unnamed global addresses. |
2 | 2 |
3 ; RUN: llvm-as < %s | pnacl-freeze \ | 3 ; RUN: %p2i --no-local-syms -i %s --insts | FileCheck %s |
4 ; RUN: | %llvm2ice -notranslate -verbose=inst -build-on-read \ | |
5 ; RUN: -allow-pnacl-reader-error-recovery \ | |
6 ; RUN: | FileCheck %s | |
7 | 4 |
8 ; RUN: llvm-as < %s | pnacl-freeze \ | 5 ; RUN: %p2i --no-local-syms -i %s --insts --args \ |
9 ; RUN: | %llvm2ice -notranslate -verbose=inst -build-on-read \ | 6 ; RUN: -default-function-prefix=h -default-global-prefix=g \ |
10 ; RUN: -default-function-prefix=h -default-global-prefix=g \ | 7 ; RUN: | FileCheck --check-prefix=BAD %s |
11 ; RUN: -allow-pnacl-reader-error-recovery \ | |
12 ; RUN: | FileCheck --check-prefix=BAD %s | |
13 | 8 |
14 ; TODO(kschimpf) Check global variable declarations, once generated. | 9 ; TODO(kschimpf) Check global variable declarations, once generated. |
15 | 10 |
16 @0 = internal global [4 x i8] zeroinitializer, align 4 | 11 @0 = internal global [4 x i8] zeroinitializer, align 4 |
17 @1 = internal constant [10 x i8] c"Some stuff", align 1 | 12 @1 = internal constant [10 x i8] c"Some stuff", align 1 |
18 @g = internal global [4 x i8] zeroinitializer, align 4 | 13 @g = internal global [4 x i8] zeroinitializer, align 4 |
19 | 14 |
20 ; BAD: Warning: Default global prefix 'g' conflicts with name 'g'. | 15 ; BAD: Warning: Default global prefix 'g' conflicts with name 'g'. |
21 | 16 |
22 define i32 @2(i32 %v) { | 17 define i32 @2(i32 %v) { |
(...skipping 17 matching lines...) Expand all Loading... |
40 ; CHECK-NEXT: } | 35 ; CHECK-NEXT: } |
41 | 36 |
42 define void @3() { | 37 define void @3() { |
43 ret void | 38 ret void |
44 } | 39 } |
45 | 40 |
46 ; CHECK-NEXT: define void @Function1() { | 41 ; CHECK-NEXT: define void @Function1() { |
47 ; CHECK-NEXT: __0: | 42 ; CHECK-NEXT: __0: |
48 ; CHECK-NEXT: ret void | 43 ; CHECK-NEXT: ret void |
49 ; CHECK-NEXT: } | 44 ; CHECK-NEXT: } |
OLD | NEW |