OLD | NEW |
1 ; Test of global initializers. | 1 ; Test of global initializers. |
2 | 2 |
3 ; RUN: %p2i -i %s --args --verbose inst | FileCheck %s | 3 ; RUN: %p2i -i %s --args --verbose inst | FileCheck %s |
4 ; RUN: %p2i -i %s --args --verbose none \ | 4 ; RUN: %p2i -i %s --args --verbose none \ |
5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj | 5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
6 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s | 6 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s |
7 ; TODO(kschimpf) Find out why lc2i is needed. | |
8 ; RUN: %lc2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s | |
9 | 7 |
10 @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 | 8 @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 |
11 ; CHECK: .data | 9 ; CHECK: .data |
12 ; CHECK-NEXT: .local | 10 ; CHECK-NEXT: .local |
13 ; CHECK-NEXT: .align 4 | 11 ; CHECK-NEXT: .align 4 |
14 ; CHECK-NEXT: PrimitiveInit: | 12 ; CHECK-NEXT: PrimitiveInit: |
15 ; CHECK-NEXT: .byte | 13 ; CHECK-NEXT: .byte |
16 ; CHECK: .size PrimitiveInit, 4 | 14 ; CHECK: .size PrimitiveInit, 4 |
17 | 15 |
18 @PrimitiveInitConst = internal constant [4 x i8] c"\0D\00\00\00", align 4 | 16 @PrimitiveInitConst = internal constant [4 x i8] c"\0D\00\00\00", align 4 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 ret i32 0 | 121 ret i32 0 |
124 } | 122 } |
125 | 123 |
126 define internal i32 @nacl_tp_tls_offset(i32 %size) { | 124 define internal i32 @nacl_tp_tls_offset(i32 %size) { |
127 entry: | 125 entry: |
128 %result = sub i32 0, %size | 126 %result = sub i32 0, %size |
129 ret i32 %result | 127 ret i32 %result |
130 } | 128 } |
131 | 129 |
132 ; ERRORS-NOT: ICE translation error | 130 ; ERRORS-NOT: ICE translation error |
133 ; DUMP-NOT: SZ | |
OLD | NEW |