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 | 3 ; REQUIRES: allow_dump |
4 | 4 |
5 ; Test that we handle it in the ICE converter. | 5 ; Test that we handle it in the ICE converter. |
6 ; RUN: %lc2i -i %s --args -verbose inst -threads=0 \ | 6 ; RUN: %lc2i -i %s --args -verbose inst -threads=0 \ |
7 ; RUN: | %iflc FileCheck %s | 7 ; RUN: | %iflc FileCheck %s |
8 ; RUN: %lc2i -i %s --args -verbose inst -threads=0 \ | 8 ; RUN: %lc2i -i %s --args -verbose inst,init -threads=0 \ |
9 ; RUN: | %iflc FileCheck --check-prefix=DUMP %s | 9 ; RUN: | %iflc FileCheck --check-prefix=DUMP %s |
10 | 10 |
11 ; Test that we handle it using Subzero's bitcode reader. | 11 ; Test that we handle it using Subzero's bitcode reader. |
12 ; RUN: %p2i -i %s --args -verbose inst -threads=0 \ | 12 ; RUN: %p2i -i %s --args -verbose inst -threads=0 \ |
13 ; RUN: | FileCheck %s | 13 ; RUN: | FileCheck %s |
14 ; RUN: %p2i -i %s --args -verbose inst -threads=0 \ | 14 ; RUN: %p2i -i %s --args -verbose inst,init -threads=0 \ |
15 ; RUN: | FileCheck --check-prefix=DUMP %s | 15 ; RUN: | FileCheck --check-prefix=DUMP %s |
16 | 16 |
17 @bytes = internal global [7 x i8] c"abcdefg" | 17 @bytes = internal global [7 x i8] c"abcdefg" |
18 ; DUMP: @bytes = internal global [7 x i8] c"abcdefg" | 18 ; DUMP: @bytes = internal global [7 x i8] c"abcdefg" |
19 ; CHECK: .type bytes,%object | 19 ; CHECK: .type bytes,%object |
20 ; CHECK: .section .data,"aw",%progbits | 20 ; CHECK: .section .data,"aw",%progbits |
21 ; CHECK:bytes: | 21 ; CHECK:bytes: |
22 ; CHECK: .byte 97 | 22 ; CHECK: .byte 97 |
23 ; CHECK: .byte 98 | 23 ; CHECK: .byte 98 |
24 ; CHECK: .byte 99 | 24 ; CHECK: .byte 99 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 ; CHECK: .section .rodata,"a",%progbits | 256 ; CHECK: .section .rodata,"a",%progbits |
257 ; CHECK:short: | 257 ; CHECK:short: |
258 ; CHECK: .zero 2 | 258 ; CHECK: .zero 2 |
259 ; CHECK: .size short, 2 | 259 ; CHECK: .size short, 2 |
260 | 260 |
261 define internal void @func() { | 261 define internal void @func() { |
262 ret void | 262 ret void |
263 } | 263 } |
264 | 264 |
265 ; DUMP: define internal void @func() { | 265 ; DUMP: define internal void @func() { |
OLD | NEW |