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