OLD | NEW |
---|---|
1 ; Show that we know how to translate asr | 1 ; Show that we know how to translate asr |
2 | 2 |
3 ; NOTE: We use -O2 to get rid of memory stores. | 3 ; NOTE: We use -O2 to get rid of memory stores. |
4 | 4 |
5 ; REQUIRES: allow_dump | 5 ; REQUIRES: allow_dump |
6 | 6 |
7 ; Compile using standalone assembler. | 7 ; Compile using standalone assembler. |
8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ | 8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ |
9 ; RUN: | FileCheck %s --check-prefix=ASM | 9 ; RUN: | FileCheck %s --check-prefix=ASM |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
54 | 54 |
55 ; ASM-NEXT: asr r0, r0, r1 | 55 ; ASM-NEXT: asr r0, r0, r1 |
56 ; DIS-NEXT: 10: e1a00150 | 56 ; DIS-NEXT: 10: e1a00150 |
57 ; IASM-NEXT: .byte 0x50 | 57 ; IASM-NEXT: .byte 0x50 |
58 ; IASM-NEXT: .byte 0x1 | 58 ; IASM-NEXT: .byte 0x1 |
59 ; IASM-NEXT: .byte 0xa0 | 59 ; IASM-NEXT: .byte 0xa0 |
60 ; IASM-NEXT: .byte 0xe1 | 60 ; IASM-NEXT: .byte 0xe1 |
61 | 61 |
62 ret i32 %v | 62 ret i32 %v |
63 } | 63 } |
64 | |
65 define internal <4 x i32> @AshrVec(<4 x i32> %a, <4 x i32> %b) { | |
Jim Stichnoth
2016/02/17 04:15:44
What about tests for i16 and i8 vectors?
(same fo
Eric Holk
2016/02/17 19:32:16
I'll add these.
| |
66 ; ASM-LABEL:AshrVec: | |
67 ; DIS-LABEL:00000020 <AshrVec>: | |
68 ; IASM-LABEL:AshrVec: | |
69 | |
70 entry: | |
71 ; ASM-NEXT:.LAshrVec$entry: | |
72 ; IASM-NEXT:.LAshrVec$entry: | |
73 | |
74 %v = ashr <4 x i32> %a, %b | |
75 | |
76 ; ASM: asr r0, r0, r1 | |
77 ; ASM: asr r0, r0, r1 | |
78 ; ASM: asr r0, r0, r1 | |
79 ; ASM: asr r0, r0, r1 | |
80 ; DIS: 28: e1a00150 | |
81 ; DIS: 38: e1a00150 | |
82 ; DIS: 48: e1a00150 | |
83 ; DIS: 58: e1a00150 | |
84 | |
85 ret <4 x i32> %v | |
86 } | |
OLD | NEW |