| OLD | NEW |
| 1 ; Show that we know how to translate bic. | 1 ; Show that we know how to translate bic. |
| 2 | 2 |
| 3 ; NOTE: We use -O2 to get rid of memory stores. | 3 ; NOTE: We use -O2 to get rid of memory stores. |
| 4 | 4 |
| 5 ; REQUIRES: allow_dump | 5 ; REQUIRES: allow_dump |
| 6 | 6 |
| 7 ; Compile using standalone assembler. | 7 ; Compile using standalone assembler. |
| 8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ | 8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ |
| 9 ; RUN: | FileCheck %s --check-prefix=ASM | 9 ; RUN: | FileCheck %s --check-prefix=ASM |
| 10 | 10 |
| 11 ; Show bytes in assembled standalone code. | 11 ; Show bytes in assembled standalone code. |
| 12 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ | 12 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ |
| 13 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS | 13 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS |
| 14 | 14 |
| 15 ; Compile using integrated assembler. | 15 ; Compile using integrated assembler. |
| 16 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 -unsafe-ias \ | 16 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \ |
| 17 ; RUN: | FileCheck %s --check-prefix=IASM | 17 ; RUN: | FileCheck %s --check-prefix=IASM |
| 18 | 18 |
| 19 ; Show bytes in assembled integrated code. | 19 ; Show bytes in assembled integrated code. |
| 20 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ | 20 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ |
| 21 ; RUN: --args -O2 -unsafe-ias | FileCheck %s --check-prefix=DIS | 21 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS |
| 22 | 22 |
| 23 define internal i32 @AllocBigAlign() { | 23 define internal i32 @AllocBigAlign() { |
| 24 %addr = alloca i8, align 32 | 24 %addr = alloca i8, align 32 |
| 25 %v = ptrtoint i8* %addr to i32 | 25 %v = ptrtoint i8* %addr to i32 |
| 26 ret i32 %v | 26 ret i32 %v |
| 27 } | 27 } |
| 28 | 28 |
| 29 ; ASM-LABEL:AllocBigAlign: | 29 ; ASM-LABEL:AllocBigAlign: |
| 30 ; ASM-NEXT:.LAllocBigAlign$__0: | 30 ; ASM-NEXT:.LAllocBigAlign$__0: |
| 31 ; ASM-NEXT: push {fp} | 31 ; ASM-NEXT: push {fp} |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 ; IASM-NEXT: .byte 0x4 | 90 ; IASM-NEXT: .byte 0x4 |
| 91 ; IASM-NEXT: .byte 0xb0 | 91 ; IASM-NEXT: .byte 0xb0 |
| 92 ; IASM-NEXT: .byte 0x9d | 92 ; IASM-NEXT: .byte 0x9d |
| 93 ; IASM-NEXT: .byte 0xe4 | 93 ; IASM-NEXT: .byte 0xe4 |
| 94 | 94 |
| 95 ; IASM: .byte 0x1e | 95 ; IASM: .byte 0x1e |
| 96 ; IASM-NEXT: .byte 0xff | 96 ; IASM-NEXT: .byte 0xff |
| 97 ; IASM-NEXT: .byte 0x2f | 97 ; IASM-NEXT: .byte 0x2f |
| 98 ; IASM-NEXT: .byte 0xe1 | 98 ; IASM-NEXT: .byte 0xe1 |
| OLD | NEW |