OLD | NEW |
1 ; Tests that we name unnamed global addresses. | 1 ; Tests that we name unnamed global addresses. |
2 | 2 |
3 ; RUN: %llvm2ice -notranslate -verbose=inst < %s | FileCheck %s | 3 ; RUN: %p2i -i %s --insts | FileCheck %s |
4 | 4 |
5 ; RUN: %llvm2ice -notranslate -verbose=inst -default-function-prefix=h \ | 5 ; RUN: %p2i -i %s --insts --args -default-function-prefix=h \ |
6 ; RUN: -default-global-prefix=g < %s | FileCheck --check-prefix=BAD %s | 6 ; RUN: -default-global-prefix=g | FileCheck --check-prefix=BAD %s |
7 | 7 |
8 @0 = internal global [4 x i8] zeroinitializer, align 4 | 8 @0 = internal global [4 x i8] zeroinitializer, align 4 |
9 | 9 |
10 ; CHECK: @Global = internal global [4 x i8] zeroinitializer, align 4 | 10 ; CHECK: @Global = internal global [4 x i8] zeroinitializer, align 4 |
11 | 11 |
12 @1 = internal constant [10 x i8] c"Some stuff", align 1 | 12 @1 = internal constant [10 x i8] c"Some stuff", align 1 |
13 | 13 |
14 ; CHECK-NEXT: @Global1 = internal constant [10 x i8] c"Some stuff", align 1 | 14 ; CHECK-NEXT: @Global1 = internal constant [10 x i8] c"Some stuff", align 1 |
15 | 15 |
16 @g = internal global [4 x i8] zeroinitializer, align 4 | 16 @g = internal global [4 x i8] zeroinitializer, align 4 |
(...skipping 24 matching lines...) Expand all Loading... |
41 | 41 |
42 define void @3() { | 42 define void @3() { |
43 ret void | 43 ret void |
44 } | 44 } |
45 | 45 |
46 ; CHECK-NEXT: define void @Function1() { | 46 ; CHECK-NEXT: define void @Function1() { |
47 ; CHECK-NEXT: __0: | 47 ; CHECK-NEXT: __0: |
48 ; CHECK-NEXT: ret void | 48 ; CHECK-NEXT: ret void |
49 ; CHECK-NEXT: } | 49 ; CHECK-NEXT: } |
50 | 50 |
OLD | NEW |