OLD | NEW |
1 ; This checks support for insertelement and extractelement. | 1 ; This checks support for insertelement and extractelement. |
2 | 2 |
3 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \ | 3 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \ |
4 ; RUN: | FileCheck %s | 4 ; RUN: | FileCheck %s |
5 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \ | 5 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \ |
6 ; RUN: | FileCheck %s | 6 ; RUN: | FileCheck %s |
7 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 -mattr=sse4.1 \ | 7 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 -mattr=sse4.1 \ |
8 ; RUN: | FileCheck --check-prefix=SSE41 %s | 8 ; RUN: | FileCheck --check-prefix=SSE41 %s |
9 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 -mattr=sse4.1 \ | 9 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 -mattr=sse4.1 \ |
10 ; RUN: | FileCheck --check-prefix=SSE41 %s | 10 ; RUN: | FileCheck --check-prefix=SSE41 %s |
11 | 11 |
12 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 12 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
13 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target mips32\ | 13 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target mips32\ |
14 ; RUN: -i %s --args -O2 --skip-unimplemented \ | 14 ; RUN: -i %s --args -O2 \ |
15 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 15 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
16 ; RUN: --command FileCheck --check-prefix MIPS32 %s | 16 ; RUN: --command FileCheck --check-prefix MIPS32 %s |
17 | 17 |
18 ; insertelement operations | 18 ; insertelement operations |
19 | 19 |
20 define internal <4 x float> @insertelement_v4f32_0(<4 x float> %vec, | 20 define internal <4 x float> @insertelement_v4f32_0(<4 x float> %vec, |
21 float %elt) { | 21 float %elt) { |
22 entry: | 22 entry: |
23 %res = insertelement <4 x float> %vec, float %elt, i32 0 | 23 %res = insertelement <4 x float> %vec, float %elt, i32 0 |
24 ret <4 x float> %res | 24 ret <4 x float> %res |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 ; SSE41-LABEL: extractelement_v16i1 | 362 ; SSE41-LABEL: extractelement_v16i1 |
363 ; SSE41: pextrb | 363 ; SSE41: pextrb |
364 | 364 |
365 ; MIPS32-LABEL: extractelement_v16i1 | 365 ; MIPS32-LABEL: extractelement_v16i1 |
366 ; MIPS32: srl a0,a0,0x8 | 366 ; MIPS32: srl a0,a0,0x8 |
367 ; MIPS32: andi a0,a0,0xff | 367 ; MIPS32: andi a0,a0,0xff |
368 ; MIPS32: andi a0,a0,0x1 | 368 ; MIPS32: andi a0,a0,0x1 |
369 ; MIPS32: andi a0,a0,0x1 | 369 ; MIPS32: andi a0,a0,0x1 |
370 ; MIPS32: move v0,a0 | 370 ; MIPS32: move v0,a0 |
371 } | 371 } |
OLD | NEW |