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 ; REQUIRES: allow_dump | |
4 | |
5 ; RUN: %p2i -i %s --insts | FileCheck %s | 3 ; RUN: %p2i -i %s --insts | FileCheck %s |
6 ; RUN: %l2i -i %s --insts | %ifl FileCheck %s | 4 ; RUN: %l2i -i %s --insts | %ifl FileCheck %s |
7 ; RUN: %lc2i -i %s --insts | %iflc FileCheck %s | 5 ; RUN: %lc2i -i %s --insts | %iflc FileCheck %s |
8 ; RUN: %if --need=allow_disable_ir_gen --command \ | 6 ; RUN: %if --need=allow_disable_ir_gen --command \ |
9 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ | 7 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ |
10 ; RUN: | %if --need=allow_disable_ir_gen --command \ | 8 ; RUN: | %if --need=allow_disable_ir_gen --command \ |
11 ; RUN: FileCheck --check-prefix=NOIR %s | 9 ; RUN: FileCheck --check-prefix=NOIR %s |
12 | 10 |
13 @bytes = internal global [7 x i8] c"abcdefg" | 11 @bytes = internal global [7 x i8] c"abcdefg" |
14 ; CHECK: @bytes = internal global [7 x i8] c"abcdefg" | 12 ; CHECK: @bytes = internal global [7 x i8] c"abcdefg" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 @short = internal constant [2 x i8] zeroinitializer | 93 @short = internal constant [2 x i8] zeroinitializer |
96 ; CHECK-NEXT: @short = internal constant [2 x i8] zeroinitializer | 94 ; CHECK-NEXT: @short = internal constant [2 x i8] zeroinitializer |
97 | 95 |
98 define void @func() { | 96 define void @func() { |
99 ret void | 97 ret void |
100 } | 98 } |
101 | 99 |
102 ; CHECK-NEXT: define void @func() { | 100 ; CHECK-NEXT: define void @func() { |
103 | 101 |
104 ; NOIR: Total across all functions | 102 ; NOIR: Total across all functions |
OLD | NEW |