| 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. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 ; IASM-NEXT: .byte 0x4d | 50 ; IASM-NEXT: .byte 0x4d |
| 51 ; IASM-NEXT: .byte 0xe2 | 51 ; IASM-NEXT: .byte 0xe2 |
| 52 | 52 |
| 53 ; **** Example of fixed instruction. | 53 ; **** Example of fixed instruction. |
| 54 ; ASM-NEXT: str r0, [fp, #-4] | 54 ; ASM-NEXT: str r0, [fp, #-4] |
| 55 ; DIS-NEXT: c: e50b0004 | 55 ; DIS-NEXT: c: e50b0004 |
| 56 ; IASM-NEXT: .byte 0x4 | 56 ; IASM-NEXT: .byte 0x4 |
| 57 ; IASM-NEXT: .byte 0x0 | 57 ; IASM-NEXT: .byte 0x0 |
| 58 ; IASM-NEXT: .byte 0xb | 58 ; IASM-NEXT: .byte 0xb |
| 59 ; IASM-NEXT: .byte 0xe5 | 59 ; IASM-NEXT: .byte 0xe5 |
| 60 | 60 ; ASM-NEXT: # [fp, #-4] = def.pseudo |
| 61 br label %next | 61 br label %next |
| 62 | 62 |
| 63 ; ASM-NEXT: b .Ltest_vla_in_loop$next | 63 ; ASM-NEXT: b .Ltest_vla_in_loop$next |
| 64 ; DIS-NEXT: 10: eaffffff | 64 ; DIS-NEXT: 10: eaffffff |
| 65 | 65 |
| 66 ; IASM-NEXT: .byte 0xff | 66 ; IASM-NEXT: .byte 0xff |
| 67 ; IASM-NEXT: .byte 0xff | 67 ; IASM-NEXT: .byte 0xff |
| 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 |