| OLD | NEW |
| 1 ; TODO(kschimpf): Show that we can handle global variable loads/stores. | 1 ; TODO(kschimpf): Show that we can handle global variable loads/stores. |
| 2 | 2 |
| 3 ; REQUIRES: allow_dump | 3 ; REQUIRES: allow_dump |
| 4 | 4 |
| 5 ; Compile using standalone assembler. | 5 ; Compile using standalone assembler. |
| 6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ | 6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ |
| 7 ; RUN: | FileCheck %s --check-prefix=ASM | 7 ; RUN: | FileCheck %s --check-prefix=ASM |
| 8 | 8 |
| 9 ; Show bytes in assembled standalone code. | 9 ; Show bytes in assembled standalone code. |
| 10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ | 10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ |
| 11 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS | 11 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS |
| 12 | 12 |
| 13 ; Compile using integrated assembler. | 13 ; Compile using integrated assembler. |
| 14 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 -unsafe-ias \ | 14 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \ |
| 15 ; RUN: | FileCheck %s --check-prefix=IASM | 15 ; RUN: | FileCheck %s --check-prefix=IASM |
| 16 | 16 |
| 17 ; Show bytes in assembled integrated code. | 17 ; Show bytes in assembled integrated code. |
| 18 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ | 18 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ |
| 19 ; RUN: --args -O2 -unsafe-ias | FileCheck %s --check-prefix=DIS | 19 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS |
| 20 | 20 |
| 21 @filler = internal global [128 x i8] zeroinitializer, align 4 | 21 @filler = internal global [128 x i8] zeroinitializer, align 4 |
| 22 | 22 |
| 23 @global1 = internal global [4 x i8] zeroinitializer, align 4 | 23 @global1 = internal global [4 x i8] zeroinitializer, align 4 |
| 24 | 24 |
| 25 ; ASM-LABEL: global1: | 25 ; ASM-LABEL: global1: |
| 26 ; ASM-NEXT: .zero 4 | 26 ; ASM-NEXT: .zero 4 |
| 27 ; ASM-NEXT: .size global1, 4 | 27 ; ASM-NEXT: .size global1, 4 |
| 28 ; ASM-NEXT: .text | 28 ; ASM-NEXT: .text |
| 29 ; ASM-NEXT: .p2alignl 4,0xe7fedef0 | 29 ; ASM-NEXT: .p2alignl 4,0xe7fedef0 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 ; IASM-NEXT: movw r1, #:lower16:global1 @ .word e3001000 | 90 ; IASM-NEXT: movw r1, #:lower16:global1 @ .word e3001000 |
| 91 ; IASM-NEXT: movt r1, #:upper16:global1 @ .word e3401000 | 91 ; IASM-NEXT: movt r1, #:upper16:global1 @ .word e3401000 |
| 92 ; IASM-NEXT: .byte 0x0 | 92 ; IASM-NEXT: .byte 0x0 |
| 93 ; IASM-NEXT: .byte 0x0 | 93 ; IASM-NEXT: .byte 0x0 |
| 94 ; IASM-NEXT: .byte 0x81 | 94 ; IASM-NEXT: .byte 0x81 |
| 95 ; IASM-NEXT: .byte 0xe5 | 95 ; IASM-NEXT: .byte 0xe5 |
| 96 ; IASM-NEXT: .byte 0x1e | 96 ; IASM-NEXT: .byte 0x1e |
| 97 ; IASM-NEXT: .byte 0xff | 97 ; IASM-NEXT: .byte 0xff |
| 98 ; IASM-NEXT: .byte 0x2f | 98 ; IASM-NEXT: .byte 0x2f |
| 99 ; IASM-NEXT: .byte 0xe1 | 99 ; IASM-NEXT: .byte 0xe1 |
| OLD | NEW |