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 ; Compile using standalone assembler. | 6 ; Compile using standalone assembler. |
7 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \ | 7 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \ |
8 ; RUN: | FileCheck %s --check-prefix=ASM | 8 ; RUN: | FileCheck %s --check-prefix=ASM |
9 | 9 |
10 ; Show bytes in assembled standalone code. | 10 ; Show bytes in assembled standalone code. |
11 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ | 11 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ |
12 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS | 12 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS |
13 | 13 |
14 ; Compile using integrated assembler. | 14 ; Compile using integrated assembler. |
15 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \ | 15 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \ |
16 ; RUN: | FileCheck %s --check-prefix=IASM | 16 ; RUN: | FileCheck %s --check-prefix=IASM |
17 | 17 |
18 ; Show bytes in assembled integrated code. | 18 ; Show bytes in assembled integrated code. |
19 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ | 19 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ |
20 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS | 20 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS |
21 | 21 |
22 define internal void @f() { | 22 define internal void @f() { |
23 ret void | 23 ret void |
24 } | 24 } |
25 | 25 |
26 ; ASM-LABEL:f: | 26 ; ASM-LABEL:f: |
27 ; ASM-NEXT: .Lf$__0: | 27 ; ASM-NEXT: .Lf$__0: |
28 ; ASM-NEXT: bx lr | 28 ; ASM-NEXT: bx lr |
29 | 29 |
30 | |
31 | |
32 ; DIS-LABEL:00000000 <f>: | 30 ; DIS-LABEL:00000000 <f>: |
33 ; IASM-LABEL:f: | 31 ; IASM-LABEL:f: |
| 32 ; IASM-NEXT:.Lf$__0: |
34 | 33 |
35 ; DIS-NEXT: 0: e12fff1e | 34 ; DIS-NEXT: 0: e12fff1e |
36 ; IASM-NEXT: .byte 0x1e | 35 ; IASM-NEXT: .byte 0x1e |
37 ; IASM-NEXT: .byte 0xff | 36 ; IASM-NEXT: .byte 0xff |
38 ; IASM-NEXT: .byte 0x2f | 37 ; IASM-NEXT: .byte 0x2f |
39 ; IASM-NEXT: .byte 0xe1 | 38 ; IASM-NEXT: .byte 0xe1 |
40 | 39 |
41 ; DIS-NEXT: 4: e7fedef0 | 40 ; DIS-NEXT: 4: e7fedef0 |
42 ; IASM-NEXT: .byte 0xf0 | 41 ; IASM-NEXT: .byte 0xf0 |
43 ; IASM-NEXT: .byte 0xde | 42 ; IASM-NEXT: .byte 0xde |
(...skipping 12 matching lines...) Expand all Loading... |
56 ; IASM-NEXT: .byte 0xfe | 55 ; IASM-NEXT: .byte 0xfe |
57 ; IASM-NEXT: .byte 0xe7 | 56 ; IASM-NEXT: .byte 0xe7 |
58 | 57 |
59 define internal void @ignore() { | 58 define internal void @ignore() { |
60 ret void | 59 ret void |
61 } | 60 } |
62 | 61 |
63 ; ASM-LABEL:ignore: | 62 ; ASM-LABEL:ignore: |
64 ; DIS-LABEL:00000010 <ignore>: | 63 ; DIS-LABEL:00000010 <ignore>: |
65 ; IASM-LABEL:ignore: | 64 ; IASM-LABEL:ignore: |
OLD | NEW |