OLD | NEW |
1 ; Test of global initializers. | 1 ; Test of global initializers. |
2 | 2 |
3 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s | 3 ; Check that we generate proper global initializers. |
4 ; RUN: %llvm2ice --verbose none %s \ | 4 ; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \ |
| 5 ; RUN: | %llvm2ice -verbose inst -build-on-read \ |
| 6 ; RUN: -allow-local-symbol-tables \ |
| 7 ; RUN: | FileCheck %s |
| 8 |
| 9 ; Check that what we generate is valid assembly |
| 10 ; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \ |
| 11 ; RUN: | %llvm2ice -verbose none -build-on-read \ |
| 12 ; RUN: -allow-local-symbol-tables \ |
5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj | 13 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
6 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 14 |
7 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 15 ; Check that we don't generate errors |
| 16 ; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \ |
| 17 ; RUN: | %llvm2ice -verbose none -build-on-read \ |
| 18 ; RUN: -allow-local-symbol-tables \ |
| 19 ; RUN: | FileCheck --check-prefix=ERRORS %s |
8 | 20 |
9 @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 | 21 @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 |
10 ; CHECK: .data | 22 ; CHECK: .data |
11 ; CHECK-NEXT: .local | 23 ; CHECK-NEXT: .local |
12 ; CHECK-NEXT: .align 4 | 24 ; CHECK-NEXT: .align 4 |
13 ; CHECK-NEXT: PrimitiveInit: | 25 ; CHECK-NEXT: PrimitiveInit: |
14 ; CHECK-NEXT: .byte | 26 ; CHECK-NEXT: .byte |
15 ; CHECK: .size PrimitiveInit, 4 | 27 ; CHECK: .size PrimitiveInit, 4 |
16 | 28 |
17 @PrimitiveInitConst = internal constant [4 x i8] c"\0D\00\00\00", align 4 | 29 @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... |
122 ret i32 0 | 134 ret i32 0 |
123 } | 135 } |
124 | 136 |
125 define internal i32 @nacl_tp_tls_offset(i32 %size) { | 137 define internal i32 @nacl_tp_tls_offset(i32 %size) { |
126 entry: | 138 entry: |
127 %result = sub i32 0, %size | 139 %result = sub i32 0, %size |
128 ret i32 %result | 140 ret i32 %result |
129 } | 141 } |
130 | 142 |
131 ; ERRORS-NOT: ICE translation error | 143 ; ERRORS-NOT: ICE translation error |
132 ; DUMP-NOT: SZ | |
OLD | NEW |