| OLD | NEW |
| 1 ; Show that we know how to translate move (immediate) ARM instruction. | 1 ; Show that we know how to translate move (immediate) ARM instruction. |
| 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 define internal i32 @Imm1() { | 21 define internal i32 @Imm1() { |
| 22 ret i32 1 | 22 ret i32 1 |
| 23 } | 23 } |
| 24 | 24 |
| 25 ; ASM-LABEL: Imm1: | 25 ; ASM-LABEL: Imm1: |
| 26 ; ASM: mov r0, #1 | 26 ; ASM: mov r0, #1 |
| 27 | 27 |
| 28 ; DIS-LABEL:00000000 <Imm1>: | 28 ; DIS-LABEL:00000000 <Imm1>: |
| 29 ; DIS-NEXT: 0: e3a00001 | 29 ; DIS-NEXT: 0: e3a00001 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 ; ASM: mov r0, #170 | 299 ; ASM: mov r0, #170 |
| 300 | 300 |
| 301 ; DIS-LABEL:00000100 <rotate0ImmAA>: | 301 ; DIS-LABEL:00000100 <rotate0ImmAA>: |
| 302 ; DIS-NEXT: 100: e3a000aa | 302 ; DIS-NEXT: 100: e3a000aa |
| 303 | 303 |
| 304 ; IASM-LABEL: rotate0ImmAA: | 304 ; IASM-LABEL: rotate0ImmAA: |
| 305 ; IASM: .byte 0xaa | 305 ; IASM: .byte 0xaa |
| 306 ; IASM: .byte 0x0 | 306 ; IASM: .byte 0x0 |
| 307 ; IASM: .byte 0xa0 | 307 ; IASM: .byte 0xa0 |
| 308 ; IASM: .byte 0xe3 | 308 ; IASM: .byte 0xe3 |
| OLD | NEW |