OLD | NEW |
1 ; Tests if we handle global variables with relocation initializers. | 1 ; Tests if we handle global variables with relocation initializers. |
2 | 2 |
3 ; RUN: %p2i -i %s --insts | FileCheck %s | 3 ; RUN: %p2i -i %s --insts | FileCheck %s |
4 ; RUN: %l2i -i %s --insts | %ifl FileCheck %s | 4 ; RUN: %l2i -i %s --insts | %ifl FileCheck %s |
5 ; RUN: %lc2i -i %s --insts | %iflc FileCheck %s | 5 ; RUN: %lc2i -i %s --insts | %iflc FileCheck %s |
| 6 ; RUN: %if --need=allow_disable_ir_gen --command \ |
| 7 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ |
| 8 ; RUN: | %if --need=allow_disable_ir_gen --command \ |
| 9 ; RUN: FileCheck --check-prefix=NOIR %s |
6 | 10 |
7 @bytes = internal global [7 x i8] c"abcdefg" | 11 @bytes = internal global [7 x i8] c"abcdefg" |
8 ; CHECK: @bytes = internal global [7 x i8] c"abcdefg" | 12 ; CHECK: @bytes = internal global [7 x i8] c"abcdefg" |
9 | 13 |
10 @const_bytes = internal constant [7 x i8] c"abcdefg" | 14 @const_bytes = internal constant [7 x i8] c"abcdefg" |
11 ; CHECK-NEXT: @const_bytes = internal constant [7 x i8] c"abcdefg" | 15 ; CHECK-NEXT: @const_bytes = internal constant [7 x i8] c"abcdefg" |
12 | 16 |
13 @ptr_to_ptr = internal global i32 ptrtoint (i32* @ptr to i32) | 17 @ptr_to_ptr = internal global i32 ptrtoint (i32* @ptr to i32) |
14 ; CHECK-NEXT: @ptr_to_ptr = internal global i32 ptrtoint (i32* @ptr to i32) | 18 ; CHECK-NEXT: @ptr_to_ptr = internal global i32 ptrtoint (i32* @ptr to i32) |
15 | 19 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 92 |
89 @short = internal constant [2 x i8] zeroinitializer | 93 @short = internal constant [2 x i8] zeroinitializer |
90 ; CHECK-NEXT: @short = internal constant [2 x i8] zeroinitializer | 94 ; CHECK-NEXT: @short = internal constant [2 x i8] zeroinitializer |
91 | 95 |
92 define void @func() { | 96 define void @func() { |
93 ret void | 97 ret void |
94 } | 98 } |
95 | 99 |
96 ; CHECK-NEXT: define void @func() { | 100 ; CHECK-NEXT: define void @func() { |
97 | 101 |
| 102 ; NOIR: Total across all functions |
OLD | NEW |