| OLD | NEW |
| 1 ; Show that we know how to translate mls. | 1 ; Show that we know how to translate mls. |
| 2 | 2 |
| 3 ; REQUIRES: allow_dump | 3 ; REQUIRES: allow_dump |
| 4 | 4 |
| 5 ; Compile using standalone assembler. | 5 ; Compile using standalone assembler. |
| 6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 --mattr=hwdiv-arm \ | 6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 --mattr=hwdiv-arm \ |
| 7 ; RUN: | FileCheck %s --check-prefix=ASM | 7 ; RUN: | FileCheck %s --check-prefix=ASM |
| 8 | 8 |
| 9 ; Show bytes in assembled standalone code. | 9 ; Show bytes in assembled standalone code. |
| 10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ | 10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 ; ASM-NEXT: bne .LtestMls$local$__0 | 76 ; ASM-NEXT: bne .LtestMls$local$__0 |
| 77 ; DIS-NEXT: 18: 1a000000 | 77 ; DIS-NEXT: 18: 1a000000 |
| 78 ; IASM-NEXT: .byte 0x0 | 78 ; IASM-NEXT: .byte 0x0 |
| 79 ; IASM-NEXT: .byte 0x0 | 79 ; IASM-NEXT: .byte 0x0 |
| 80 ; IASM-NEXT: .byte 0x0 | 80 ; IASM-NEXT: .byte 0x0 |
| 81 ; IASM-NEXT: .byte 0x1a | 81 ; IASM-NEXT: .byte 0x1a |
| 82 | 82 |
| 83 ; ASM-NEXT: .long 0xe7fedef0 | 83 ; ASM-NEXT: .long 0xe7fedef0 |
| 84 ; DIS-NEXT: 1c: e7fedef0 | 84 ; DIS-NEXT: 1c: e7fedef0 |
| 85 ; IASM-NEXT: .long 0xe7fedef0 | 85 ; IASM-NEXT: .byte 0xf0 |
| 86 ; IASM-NEXT: .byte 0xde |
| 87 ; IASM-NEXT: .byte 0xfe |
| 88 ; IASM-NEXT: .byte 0xe7 |
| 86 | 89 |
| 87 ; ASM-NEXT: .LtestMls$local$__0: | 90 ; ASM-NEXT: .LtestMls$local$__0: |
| 88 ; IASM-NEXT: .LtestMls$local$__0: | 91 ; IASM-NEXT: .LtestMls$local$__0: |
| 89 | 92 |
| 90 ; ASM-NEXT: ldr r1, [sp, #4] | 93 ; ASM-NEXT: ldr r1, [sp, #4] |
| 91 ; DIS-NEXT: 20: e59d1004 | 94 ; DIS-NEXT: 20: e59d1004 |
| 92 ; IASM-NEXT: .byte 0x4 | 95 ; IASM-NEXT: .byte 0x4 |
| 93 ; IASM-NEXT: .byte 0x10 | 96 ; IASM-NEXT: .byte 0x10 |
| 94 ; IASM-NEXT: .byte 0x9d | 97 ; IASM-NEXT: .byte 0x9d |
| 95 ; IASM-NEXT: .byte 0xe5 | 98 ; IASM-NEXT: .byte 0xe5 |
| 96 | 99 |
| 97 ; ASM-NEXT: sdiv r2, r0, r1 | 100 ; ASM-NEXT: sdiv r2, r0, r1 |
| 98 ; DIS-NEXT: 24: e712f110 | 101 ; DIS-NEXT: 24: e712f110 |
| 99 ; IASM-NEXT: .byte 0x10 | 102 ; IASM-NEXT: .byte 0x10 |
| 100 ; IASM-NEXT: .byte 0xf1 | 103 ; IASM-NEXT: .byte 0xf1 |
| 101 ; IASM-NEXT: .byte 0x12 | 104 ; IASM-NEXT: .byte 0x12 |
| 102 ; IASM-NEXT: .byte 0xe7 | 105 ; IASM-NEXT: .byte 0xe7 |
| 103 | 106 |
| 104 ; ASM-NEXT: mls r0, r2, r1, r0 | 107 ; ASM-NEXT: mls r0, r2, r1, r0 |
| 105 ; DIS-NEXT: 28: e0600192 | 108 ; DIS-NEXT: 28: e0600192 |
| 106 ; IASM-NEXT: .byte 0x92 | 109 ; IASM-NEXT: .byte 0x92 |
| 107 ; IASM-NEXT: .byte 0x1 | 110 ; IASM-NEXT: .byte 0x1 |
| 108 ; IASM-NEXT: .byte 0x60 | 111 ; IASM-NEXT: .byte 0x60 |
| 109 ; IASM-NEXT: .byte 0xe0 | 112 ; IASM-NEXT: .byte 0xe0 |
| 110 | 113 |
| 111 ret i32 %rem | 114 ret i32 %rem |
| 112 } | 115 } |
| OLD | NEW |