| OLD | NEW |
| 1 ; Sample program that generates "str reg, [fp, #CCCC]", to show that we | 1 ; Sample program that generates "str reg, [fp, #CCCC]", to show that we |
| 2 ; recognize that "fp" should be used instead of "sp". | 2 ; recognize that "fp" should be used instead of "sp". |
| 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: -unsafe-ias | 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 -unsafe-ias | FileCheck %s --check-prefix=DIS | 20 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS |
| 21 | 21 |
| 22 define internal void @test_vla_in_loop(i32 %n) { | 22 define internal void @test_vla_in_loop(i32 %n) { |
| 23 ; ASM-LABEL: test_vla_in_loop: | 23 ; ASM-LABEL: test_vla_in_loop: |
| 24 ; DIS-LABEL: 00000000 <test_vla_in_loop>: | 24 ; DIS-LABEL: 00000000 <test_vla_in_loop>: |
| 25 ; IASM-LABEL: test_vla_in_loop: | 25 ; IASM-LABEL: test_vla_in_loop: |
| 26 | 26 |
| 27 entry: | 27 entry: |
| 28 | 28 |
| 29 ; ASM-NEXT: .Ltest_vla_in_loop$entry: | 29 ; ASM-NEXT: .Ltest_vla_in_loop$entry: |
| 30 ; IASM-NEXT: .Ltest_vla_in_loop$entry: | 30 ; IASM-NEXT: .Ltest_vla_in_loop$entry: |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 ; IASM-NEXT: .byte 0xff | 68 ; IASM-NEXT: .byte 0xff |
| 69 ; IASM-NEXT: .byte 0xea | 69 ; IASM-NEXT: .byte 0xea |
| 70 | 70 |
| 71 ; Put the variable-length alloca in a non-entry block, to reduce the | 71 ; Put the variable-length alloca in a non-entry block, to reduce the |
| 72 ; chance the optimizer putting it before the regular frame creation. | 72 ; chance the optimizer putting it before the regular frame creation. |
| 73 | 73 |
| 74 next: | 74 next: |
| 75 %v = alloca i8, i32 %n, align 4 | 75 %v = alloca i8, i32 %n, align 4 |
| 76 ret void | 76 ret void |
| 77 } | 77 } |
| OLD | NEW |