| OLD | NEW |
| 1 ; Show that we handle constants in a movw, when it isn't represented as | 1 ; Show that we handle constants in a movw, when it isn't represented as |
| 2 ; ConstantRelocatable (see mov-imm.ll for the ConstantRelocatable case). | 2 ; ConstantRelocatable (see mov-imm.ll for the ConstantRelocatable case). |
| 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: --test-stack-extra 4084 | FileCheck %s --check-prefix=ASM | 8 ; RUN: --test-stack-extra 4084 | 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 --test-stack-extra 4084 | FileCheck %s --check-prefix=DIS | 12 ; RUN: --args -Om1 --test-stack-extra 4084 | 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 -unsafe-ias \ | 15 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \ |
| 16 ; RUN: --test-stack-extra 4084 | FileCheck %s --check-prefix=IASM | 16 ; RUN: --test-stack-extra 4084 | 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 --test-stack-extra 4084 \ | 20 ; RUN: --args -Om1 --test-stack-extra 4084 \ |
| 21 ; RUN: | FileCheck %s --check-prefix=DIS | 21 ; RUN: | FileCheck %s --check-prefix=DIS |
| 22 | 22 |
| 23 define internal i32 @foo(i32 %x) { | 23 define internal i32 @foo(i32 %x) { |
| 24 entry: | 24 entry: |
| 25 | 25 |
| 26 ; ASM-LABEL: foo: | 26 ; ASM-LABEL: foo: |
| 27 ; ASM-NEXT: .Lfoo$entry: | 27 ; ASM-NEXT: .Lfoo$entry: |
| 28 ; ******* Movw case to check ******* | 28 ; ******* Movw case to check ******* |
| 29 ; ASM-NEXT: movw ip, #4092 | 29 ; ASM-NEXT: movw ip, #4092 |
| 30 ; ASM-NEXT: sub sp, sp, ip | 30 ; ASM-NEXT: sub sp, sp, ip |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 ; IASM-NEXT: .byte 0xd0 | 112 ; IASM-NEXT: .byte 0xd0 |
| 113 ; IASM-NEXT: .byte 0x8d | 113 ; IASM-NEXT: .byte 0x8d |
| 114 ; IASM-NEXT: .byte 0xe0 | 114 ; IASM-NEXT: .byte 0xe0 |
| 115 | 115 |
| 116 ; IASM-NEXT: .byte 0x1e | 116 ; IASM-NEXT: .byte 0x1e |
| 117 ; IASM-NEXT: .byte 0xff | 117 ; IASM-NEXT: .byte 0xff |
| 118 ; IASM-NEXT: .byte 0x2f | 118 ; IASM-NEXT: .byte 0x2f |
| 119 ; IASM-NEXT: .byte 0xe1 | 119 ; IASM-NEXT: .byte 0xe1 |
| 120 | 120 |
| 121 } | 121 } |
| OLD | NEW |