OLD | NEW |
1 ; Shows that the ARM integrated assembler can translate a trivial, | 1 ; Shows that the ARM integrated assembler can translate a trivial, |
2 ; bundle-aligned function. | 2 ; bundle-aligned function. |
3 | 3 |
4 ; REQUIRES: allow_dump | 4 ; REQUIRES: allow_dump |
5 | 5 |
6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 \ | 6 ; Compile using standalone assembler. |
| 7 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \ |
7 ; RUN: | FileCheck %s --check-prefix=ASM | 8 ; RUN: | FileCheck %s --check-prefix=ASM |
8 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 \ | 9 |
| 10 ; Show bytes in assembled standalone code. |
| 11 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ |
| 12 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS |
| 13 |
| 14 ; Compile using integrated assembler. |
| 15 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \ |
9 ; RUN: | FileCheck %s --check-prefix=IASM | 16 ; RUN: | FileCheck %s --check-prefix=IASM |
10 | 17 |
| 18 ; Show bytes in assembled integrated code. |
| 19 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ |
| 20 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS |
| 21 |
11 define internal void @f() { | 22 define internal void @f() { |
12 ret void | 23 ret void |
13 } | 24 } |
14 | 25 |
15 ; ASM-LABEL:f: | 26 ; ASM-LABEL:f: |
16 ; ASM-NEXT: .Lf$__0: | 27 ; ASM-NEXT: .Lf$__0: |
17 ; ASM-NEXT: » bx» lr | 28 ; ASM-NEXT: bx lr |
18 | 29 |
| 30 |
| 31 |
| 32 ; DIS-LABEL:00000000 <f>: |
19 ; IASM-LABEL:f: | 33 ; IASM-LABEL:f: |
20 ; IASM-NEXT: .byte 0x1e | |
21 ; IASM-NEXT: .byte 0xff | |
22 ; IASM-NEXT: .byte 0x2f | |
23 ; IASM-NEXT: .byte 0xe1 | |
24 | 34 |
25 ; IASM-NEXT: » .byte 0x70 | 35 ; DIS-NEXT: 0: e12fff1e |
26 ; IASM-NEXT: » .byte 0x0 | 36 ; IASM-NEXT: .byte 0x1e |
27 ; IASM-NEXT: » .byte 0x20 | 37 ; IASM-NEXT: .byte 0xff |
28 ; IASM-NEXT: » .byte 0xe1 | 38 ; IASM-NEXT: .byte 0x2f |
| 39 ; IASM-NEXT: .byte 0xe1 |
29 | 40 |
30 ; IASM-NEXT: » .byte 0x70 | 41 ; DIS-NEXT: 4: e7fedef0 |
31 ; IASM-NEXT: » .byte 0x0 | 42 ; IASM-NEXT: .byte 0xf0 |
32 ; IASM-NEXT: » .byte 0x20 | 43 ; IASM-NEXT: .byte 0xde |
33 ; IASM-NEXT: » .byte 0xe1 | 44 ; IASM-NEXT: .byte 0xfe |
| 45 ; IASM-NEXT: .byte 0xe7 |
34 | 46 |
35 ; IASM-NEXT: » .byte 0x70 | 47 ; DIS-NEXT: 8: e7fedef0 |
36 ; IASM-NEXT: » .byte 0x0 | 48 ; IASM-NEXT: .byte 0xf0 |
37 ; IASM-NEXT: » .byte 0x20 | 49 ; IASM-NEXT: .byte 0xde |
38 ; IASM-NEXT: » .byte 0xe1 | 50 ; IASM-NEXT: .byte 0xfe |
| 51 ; IASM-NEXT: .byte 0xe7 |
| 52 |
| 53 ; DIS-NEXT: c: e7fedef0 |
| 54 ; IASM-NEXT: .byte 0xf0 |
| 55 ; IASM-NEXT: .byte 0xde |
| 56 ; IASM-NEXT: .byte 0xfe |
| 57 ; IASM-NEXT: .byte 0xe7 |
| 58 |
| 59 define internal void @ignore() { |
| 60 ret void |
| 61 } |
| 62 |
| 63 ; ASM-LABEL:ignore: |
| 64 ; DIS-LABEL:00000010 <ignore>: |
| 65 ; IASM-LABEL:ignore: |
OLD | NEW |