OLD | NEW |
1 ; Test of global initializers. | 1 ; Test of global initializers. |
2 | 2 |
3 ; REQUIRES: allow_dump | 3 ; REQUIRES: allow_dump |
4 | 4 |
5 ; Test -ias=0 to test the lea "hack" until we are fully confident in -ias=1 | 5 ; Test -filetype=asm to test the lea "hack" until we are fully confident |
6 ; RUN: %p2i -i %s --args --verbose none -ias=0 | FileCheck %s | 6 ; in -filetype=iasm . |
| 7 ; RUN: %p2i -i %s --args --verbose none -filetype=asm | FileCheck %s |
7 | 8 |
8 ; Test -ias=1 and try to cross reference instructions w/ the symbol table. | 9 ; Test -filetype=iasm and try to cross reference instructions w/ the |
| 10 ; symbol table. |
9 ; RUN: %p2i -i %s --args --verbose none \ | 11 ; RUN: %p2i -i %s --args --verbose none \ |
10 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 12 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
11 ; RUN: | llvm-objdump -d -r --symbolize -x86-asm-syntax=intel - \ | 13 ; RUN: | llvm-objdump -d -r --symbolize -x86-asm-syntax=intel - \ |
12 ; RUN: | FileCheck --check-prefix=IAS %s | 14 ; RUN: | FileCheck --check-prefix=IAS %s |
13 ; RUN: %p2i -i %s --args --verbose none \ | 15 ; RUN: %p2i -i %s --args --verbose none \ |
14 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 16 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
15 ; RUN: | llvm-objdump -d -t --symbolize -x86-asm-syntax=intel - \ | 17 ; RUN: | llvm-objdump -d -t --symbolize -x86-asm-syntax=intel - \ |
16 ; RUN: | FileCheck --check-prefix=SYMTAB %s | 18 ; RUN: | FileCheck --check-prefix=SYMTAB %s |
17 | 19 |
18 @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 | 20 @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 define internal i32 @nacl_tp_tdb_offset(i32 %__0) { | 169 define internal i32 @nacl_tp_tdb_offset(i32 %__0) { |
168 entry: | 170 entry: |
169 ret i32 0 | 171 ret i32 0 |
170 } | 172 } |
171 | 173 |
172 define internal i32 @nacl_tp_tls_offset(i32 %size) { | 174 define internal i32 @nacl_tp_tls_offset(i32 %size) { |
173 entry: | 175 entry: |
174 %result = sub i32 0, %size | 176 %result = sub i32 0, %size |
175 ret i32 %result | 177 ret i32 %result |
176 } | 178 } |
OLD | NEW |