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