| 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 ; REQUIRES: allow_llvm_ir_as_input |
| 11 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals | FileCheck %s | |
| 12 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals \ | 11 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals \ |
| 12 ; RUN: -allow-externally-defined-symbols | FileCheck %s |
| 13 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals \ |
| 14 ; RUN: -allow-externally-defined-symbols \ |
| 13 ; RUN: -prefix Subzero_ | FileCheck --check-prefix=CROSS %s | 15 ; RUN: -prefix Subzero_ | FileCheck --check-prefix=CROSS %s |
| 14 | 16 |
| 15 @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 | 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 |
| 16 | 18 |
| 17 ; 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 | 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 |
| 18 ; CROSS: @Subzero_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 | 20 ; CROSS: @Subzero_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 |
| 19 | 21 |
| 20 @ArrayInitFull = internal global [20 x i8] c"\0A\00\00\00\14\00\00\00\1E\00\00\0
0(\00\00\002\00\00\00", align 4 | 22 @ArrayInitFull = internal global [20 x i8] c"\0A\00\00\00\14\00\00\00\1E\00\00\0
0(\00\00\002\00\00\00", align 4 |
| 21 | 23 |
| 22 ; CHECK: @ArrayInitFull = internal global [20 x i8] c"\0A\00\00\00\14\00\00\00\1
E\00\00\00(\00\00\002\00\00\00", align 4 | 24 ; CHECK: @ArrayInitFull = internal global [20 x i8] c"\0A\00\00\00\14\00\00\00\1
E\00\00\00(\00\00\002\00\00\00", align 4 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 define i32 @nacl_tp_tdb_offset(i32) { | 261 define i32 @nacl_tp_tdb_offset(i32) { |
| 260 entry: | 262 entry: |
| 261 ret i32 0 | 263 ret i32 0 |
| 262 } | 264 } |
| 263 | 265 |
| 264 define i32 @nacl_tp_tls_offset(i32 %size) { | 266 define i32 @nacl_tp_tls_offset(i32 %size) { |
| 265 entry: | 267 entry: |
| 266 %result = sub i32 0, %size | 268 %result = sub i32 0, %size |
| 267 ret i32 %result | 269 ret i32 %result |
| 268 } | 270 } |
| OLD | NEW |