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 17 matching lines...) Expand all Loading... |
28 ; IASM-NEXT: .LtestMls$entry: | 28 ; IASM-NEXT: .LtestMls$entry: |
29 | 29 |
30 ; ASM-NEXT: sub sp, sp, #12 | 30 ; ASM-NEXT: sub sp, sp, #12 |
31 ; DIS-NEXT: 0: e24dd00c | 31 ; DIS-NEXT: 0: e24dd00c |
32 ; IASM-NEXT: .byte 0xc | 32 ; IASM-NEXT: .byte 0xc |
33 ; IASM-NEXT: .byte 0xd0 | 33 ; IASM-NEXT: .byte 0xd0 |
34 ; IASM-NEXT: .byte 0x4d | 34 ; IASM-NEXT: .byte 0x4d |
35 ; IASM-NEXT: .byte 0xe2 | 35 ; IASM-NEXT: .byte 0xe2 |
36 | 36 |
37 ; ASM-NEXT: str r0, [sp, #8] | 37 ; ASM-NEXT: str r0, [sp, #8] |
38 ; ASM-NEXT: # [sp, #8] = def.pseudo | 38 ; ASM-NEXT: # [sp, #8] = def.pseudo |
39 ; DIS-NEXT: 4: e58d0008 | 39 ; DIS-NEXT: 4: e58d0008 |
40 ; IASM-NEXT: .byte 0x8 | 40 ; IASM-NEXT: .byte 0x8 |
41 ; IASM-NEXT: .byte 0x0 | 41 ; IASM-NEXT: .byte 0x0 |
42 ; IASM-NEXT: .byte 0x8d | 42 ; IASM-NEXT: .byte 0x8d |
43 ; IASM-NEXT: .byte 0xe5 | 43 ; IASM-NEXT: .byte 0xe5 |
44 | 44 |
45 ; ASM-NEXT: str r1, [sp, #4] | 45 ; ASM-NEXT: str r1, [sp, #4] |
46 ; ASM-NEXT: # [sp, #4] = def.pseudo | 46 ; ASM-NEXT: # [sp, #4] = def.pseudo |
47 ; DIS-NEXT: 8: e58d1004 | 47 ; DIS-NEXT: 8: e58d1004 |
48 ; IASM-NEXT: .byte 0x4 | 48 ; IASM-NEXT: .byte 0x4 |
49 ; IASM-NEXT: .byte 0x10 | 49 ; IASM-NEXT: .byte 0x10 |
50 ; IASM-NEXT: .byte 0x8d | 50 ; IASM-NEXT: .byte 0x8d |
51 ; IASM-NEXT: .byte 0xe5 | 51 ; IASM-NEXT: .byte 0xe5 |
52 | 52 |
53 %rem = srem i32 %a, %b | 53 %rem = srem i32 %a, %b |
54 | 54 |
55 ; ASM-NEXT: ldr r0, [sp, #8] | 55 ; ASM-NEXT: ldr r0, [sp, #8] |
56 ; DIS-NEXT: c: e59d0008 | 56 ; DIS-NEXT: c: e59d0008 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 ; ASM-NEXT: mls r0, r2, r1, r0 | 107 ; ASM-NEXT: mls r0, r2, r1, r0 |
108 ; DIS-NEXT: 28: e0600192 | 108 ; DIS-NEXT: 28: e0600192 |
109 ; IASM-NEXT: .byte 0x92 | 109 ; IASM-NEXT: .byte 0x92 |
110 ; IASM-NEXT: .byte 0x1 | 110 ; IASM-NEXT: .byte 0x1 |
111 ; IASM-NEXT: .byte 0x60 | 111 ; IASM-NEXT: .byte 0x60 |
112 ; IASM-NEXT: .byte 0xe0 | 112 ; IASM-NEXT: .byte 0xe0 |
113 | 113 |
114 ret i32 %rem | 114 ret i32 %rem |
115 } | 115 } |
OLD | NEW |