OLD | NEW |
1 ; Test whether we don't mangle external, undefined, global names. This | 1 ; Test whether we don't mangle external, undefined, global names. This |
2 ; feature is needed for cross tests on global initializer relocations. | 2 ; feature is needed for cross tests on global initializer relocations. |
3 ; | 3 ; |
4 ; Note: This code was generated by compiling subzero/crosstest/test_global.cpp | 4 ; Note: This code was generated by compiling subzero/crosstest/test_global.cpp |
5 | 5 |
6 ; We use lc2i (rather than p2i) because PNaCl bitcode files do not | 6 ; We use lc2i (rather than p2i) because PNaCl bitcode files do not |
7 ; allow externally defined global variables. Hence, this test can only | 7 ; allow externally defined global variables. Hence, this test can only |
8 ; work if we read LLVM IR source, and convert to to ICE. | 8 ; work if we read LLVM IR source, and convert to to ICE. |
9 | 9 |
| 10 ; REQUIRES: allow_llvm_ir_as_input |
10 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals | FileCheck %s | 11 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals | FileCheck %s |
11 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals \ | 12 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals \ |
12 ; RUN: -prefix Subzero_ | FileCheck --check-prefix=CROSS %s | 13 ; RUN: -prefix Subzero_ | FileCheck --check-prefix=CROSS %s |
13 | 14 |
14 target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64
:64:64-p:32:32:32-v128:32:32" | 15 target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64
:64:64-p:32:32:32-v128:32:32" |
15 target triple = "i686-pc-linux-gnu" | 16 target triple = "i686-pc-linux-gnu" |
16 | 17 |
17 @ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\00\00\00Z\
00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00",
align 4 | 18 @ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\00\00\00Z\
00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00",
align 4 |
18 | 19 |
19 ; CHECK: @ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\0
0\00\00Z\00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0
0\00\00", align 4 | 20 ; CHECK: @ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\0
0\00\00Z\00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0
0\00\00", align 4 |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 define i32 @nacl_tp_tdb_offset(i32) { | 262 define i32 @nacl_tp_tdb_offset(i32) { |
262 entry: | 263 entry: |
263 ret i32 0 | 264 ret i32 0 |
264 } | 265 } |
265 | 266 |
266 define i32 @nacl_tp_tls_offset(i32 %size) { | 267 define i32 @nacl_tp_tls_offset(i32 %size) { |
267 entry: | 268 entry: |
268 %result = sub i32 0, %size | 269 %result = sub i32 0, %size |
269 ret i32 %result | 270 ret i32 %result |
270 } | 271 } |
OLD | NEW |