forked from OSchip/llvm-project
[X86][AVX] vpermilvar.pd mask element indices only use bit1
llvm-svn: 262134
This commit is contained in:
parent
053826af69
commit
83e76327e8
|
@ -46,24 +46,24 @@ define <8 x float> @combine_vpermilvar_8f32(<8 x float> %a0) {
|
|||
define <2 x double> @combine_vpermilvar_2f64(<2 x double> %a0) {
|
||||
; ALL-LABEL: combine_vpermilvar_2f64:
|
||||
; ALL: # BB#0:
|
||||
; ALL-NEXT: movl $1, %eax
|
||||
; ALL-NEXT: movl $2, %eax
|
||||
; ALL-NEXT: vmovq %rax, %xmm1
|
||||
; ALL-NEXT: vpermilpd %xmm1, %xmm0, %xmm0
|
||||
; ALL-NEXT: vpermilpd %xmm1, %xmm0, %xmm0
|
||||
; ALL-NEXT: retq
|
||||
%1 = tail call <2 x double> @llvm.x86.avx.vpermilvar.pd(<2 x double> %a0, <2 x i64> <i64 1, i64 0>)
|
||||
%2 = tail call <2 x double> @llvm.x86.avx.vpermilvar.pd(<2 x double> %1, <2 x i64> <i64 1, i64 0>)
|
||||
%1 = tail call <2 x double> @llvm.x86.avx.vpermilvar.pd(<2 x double> %a0, <2 x i64> <i64 2, i64 0>)
|
||||
%2 = tail call <2 x double> @llvm.x86.avx.vpermilvar.pd(<2 x double> %1, <2 x i64> <i64 2, i64 0>)
|
||||
ret <2 x double> %2
|
||||
}
|
||||
|
||||
define <4 x double> @combine_vpermilvar_4f64(<4 x double> %a0) {
|
||||
; ALL-LABEL: combine_vpermilvar_4f64:
|
||||
; ALL: # BB#0:
|
||||
; ALL-NEXT: vmovapd {{.*#+}} ymm1 = [1,0,1,0]
|
||||
; ALL-NEXT: vmovapd {{.*#+}} ymm1 = [2,0,2,0]
|
||||
; ALL-NEXT: vpermilpd %ymm1, %ymm0, %ymm0
|
||||
; ALL-NEXT: vpermilpd %ymm1, %ymm0, %ymm0
|
||||
; ALL-NEXT: retq
|
||||
%1 = tail call <4 x double> @llvm.x86.avx.vpermilvar.pd.256(<4 x double> %a0, <4 x i64> <i64 1, i64 0, i64 1, i64 0>)
|
||||
%2 = tail call <4 x double> @llvm.x86.avx.vpermilvar.pd.256(<4 x double> %1, <4 x i64> <i64 1, i64 0, i64 1, i64 0>)
|
||||
%1 = tail call <4 x double> @llvm.x86.avx.vpermilvar.pd.256(<4 x double> %a0, <4 x i64> <i64 2, i64 0, i64 2, i64 0>)
|
||||
%2 = tail call <4 x double> @llvm.x86.avx.vpermilvar.pd.256(<4 x double> %1, <4 x i64> <i64 2, i64 0, i64 2, i64 0>)
|
||||
ret <4 x double> %2
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue