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 | %iflc FileCheck %s | 6 ; RUN: %lc2i -i %s --args -verbose inst -threads=0 | %iflc FileCheck %s |
7 | 7 |
8 ; Test that we handle it using Subzero's bitcode reader. | 8 ; Test that we handle it using Subzero's bitcode reader. |
9 ; RUN: %p2i -i %s --args -verbose inst | FileCheck %s | 9 ; RUN: %p2i -i %s --args -verbose inst -threads=0 | FileCheck %s |
10 | 10 |
11 @bytes = internal global [7 x i8] c"abcdefg" | 11 @bytes = internal global [7 x i8] c"abcdefg" |
12 ; CHECK: @bytes = internal global [7 x i8] c"abcdefg" | 12 ; CHECK: @bytes = internal global [7 x i8] c"abcdefg" |
13 ; CHECK: .type bytes,@object | 13 ; CHECK: .type bytes,@object |
14 ; CHECK: .section .data,"aw",@progbits | 14 ; CHECK: .section .data,"aw",@progbits |
15 ; CHECK:bytes: | 15 ; CHECK:bytes: |
16 ; CHECK: .byte 97 | 16 ; CHECK: .byte 97 |
17 ; CHECK: .byte 98 | 17 ; CHECK: .byte 98 |
18 ; CHECK: .byte 99 | 18 ; CHECK: .byte 99 |
19 ; CHECK: .byte 100 | 19 ; CHECK: .byte 100 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 ; CHECK:short: | 251 ; CHECK:short: |
252 ; CHECK: .zero 2 | 252 ; CHECK: .zero 2 |
253 ; CHECK: .size short, 2 | 253 ; CHECK: .size short, 2 |
254 | 254 |
255 define void @func() { | 255 define void @func() { |
256 ret void | 256 ret void |
257 } | 257 } |
258 | 258 |
259 ; CHECK: define void @func() { | 259 ; CHECK: define void @func() { |
260 | 260 |
OLD | NEW |