| OLD | NEW |
| 1 ; Show that we know how to translate instruction sub. | 1 ; Show that we know how to translate instruction sub. |
| 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 \ |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 } | 43 } |
| 44 | 44 |
| 45 ; ASM-LABEL: Sub2Regs: | 45 ; ASM-LABEL: Sub2Regs: |
| 46 ; ASM: sub r0, r0, r1 | 46 ; ASM: sub r0, r0, r1 |
| 47 ; ASM-NEXT: bx lr | 47 ; ASM-NEXT: bx lr |
| 48 | 48 |
| 49 ; DIS-LABEL:00000010 <Sub2Regs>: | 49 ; DIS-LABEL:00000010 <Sub2Regs>: |
| 50 ; DIS-NEXT: 10: e0400001 | 50 ; DIS-NEXT: 10: e0400001 |
| 51 | 51 |
| 52 ; IASM-LABEL: Sub2Regs: | 52 ; IASM-LABEL: Sub2Regs: |
| 53 ; IASM-NEXT: .byte 0x1 | 53 ; IASM: .byte 0x1 |
| 54 ; IASM-NEXT: .byte 0x0 | 54 ; IASM-NEXT: .byte 0x0 |
| 55 ; IASM-NEXT: .byte 0x40 | 55 ; IASM-NEXT: .byte 0x40 |
| 56 ; IASM-NEXT: .byte 0xe0 | 56 ; IASM-NEXT: .byte 0xe0 |
| 57 | 57 |
| OLD | NEW |