mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[X86] Regenerate shuffle test
llvm-svn: 269186
This commit is contained in:
parent
865795dc05
commit
b4908aa0b7
@ -2273,33 +2273,57 @@ define <16 x float> @test_vshuff32x4_512(<16 x float> %x, <16 x float> %x1) noun
|
||||
}
|
||||
|
||||
define <8 x double> @shuffle_v8f64_23014567(<8 x double> %a0, <8 x double> %a1) {
|
||||
; ALL-LABEL: shuffle_v8f64_23014567:
|
||||
; ALL: # BB#0:
|
||||
; ALL-NEXT: vshuff64x2 $225, %zmm1, %zmm1, %zmm0 # zmm0 = zmm1[2,3,0,1,4,5,6,7]
|
||||
; AVX512F-LABEL: shuffle_v8f64_23014567:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vshuff64x2 {{.*#+}} zmm0 = zmm1[2,3,0,1,4,5,6,7]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512F-32-LABEL: shuffle_v8f64_23014567:
|
||||
; AVX512F-32: # BB#0:
|
||||
; AVX512F-32-NEXT: vshuff64x2 {{.*#+}} zmm0 = zmm1[2,3,0,1,4,5,6,7]
|
||||
; AVX512F-32-NEXT: retl
|
||||
%1 = shufflevector <8 x double> %a1, <8 x double> undef, <8 x i32> <i32 2, i32 3, i32 0, i32 1, i32 4, i32 5, i32 6, i32 7>
|
||||
ret <8 x double> %1
|
||||
}
|
||||
|
||||
define <8 x double> @shuffle_v8f64_2301uu67(<8 x double> %a0, <8 x double> %a1) {
|
||||
; ALL-LABEL: shuffle_v8f64_2301uu67:
|
||||
; ALL: # BB#0:
|
||||
; ALL-NEXT: vshuff64x2 $193, %zmm1, %zmm1, %zmm0 # zmm0 = zmm1[2,3,0,1,0,1,6,7]
|
||||
; AVX512F-LABEL: shuffle_v8f64_2301uu67:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vshuff64x2 {{.*#+}} zmm0 = zmm1[2,3,0,1,0,1,6,7]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512F-32-LABEL: shuffle_v8f64_2301uu67:
|
||||
; AVX512F-32: # BB#0:
|
||||
; AVX512F-32-NEXT: vshuff64x2 {{.*#+}} zmm0 = zmm1[2,3,0,1,0,1,6,7]
|
||||
; AVX512F-32-NEXT: retl
|
||||
%1 = shufflevector <8 x double> %a1, <8 x double> undef, <8 x i32> <i32 2, i32 3, i32 0, i32 1, i32 undef, i32 undef, i32 6, i32 7>
|
||||
ret <8 x double> %1
|
||||
}
|
||||
|
||||
define <8 x double> @shuffle_v8f64_2301uuuu(<8 x double> %a0, <8 x double> %a1) {
|
||||
; ALL-LABEL: shuffle_v8f64_2301uuuu:
|
||||
; ALL: # BB#0:
|
||||
; ALL-NEXT: vshuff64x2 $1, %zmm0, %zmm1, %zmm0 # zmm0 = zmm1[2,3,0,1],zmm0[0,1,0,1]
|
||||
; AVX512F-LABEL: shuffle_v8f64_2301uuuu:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vshuff64x2 {{.*#+}} zmm0 = zmm1[2,3,0,1],zmm0[0,1,0,1]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512F-32-LABEL: shuffle_v8f64_2301uuuu:
|
||||
; AVX512F-32: # BB#0:
|
||||
; AVX512F-32-NEXT: vshuff64x2 {{.*#+}} zmm0 = zmm1[2,3,0,1],zmm0[0,1,0,1]
|
||||
; AVX512F-32-NEXT: retl
|
||||
%1 = shufflevector <8 x double> %a1, <8 x double> undef, <8 x i32> <i32 2, i32 3, i32 0, i32 1, i32 undef, i32 undef, i32 undef, i32 undef>
|
||||
ret <8 x double> %1
|
||||
}
|
||||
|
||||
define <8 x double> @shuffle_v8f64_uuu2301(<8 x double> %a0, <8 x double> %a1) {
|
||||
; ALL-LABEL: shuffle_v8f64_uuu2301:
|
||||
; ALL: # BB#0:
|
||||
; ALL-NEXT: vshuff64x2 $16, %zmm1, %zmm0, %zmm0 # zmm0 = zmm0[0,1,0,1],zmm1[2,3,0,1]
|
||||
; AVX512F-LABEL: shuffle_v8f64_uuu2301:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vshuff64x2 {{.*#+}} zmm0 = zmm0[0,1,0,1],zmm1[2,3,0,1]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512F-32-LABEL: shuffle_v8f64_uuu2301:
|
||||
; AVX512F-32: # BB#0:
|
||||
; AVX512F-32-NEXT: vshuff64x2 {{.*#+}} zmm0 = zmm0[0,1,0,1],zmm1[2,3,0,1]
|
||||
; AVX512F-32-NEXT: retl
|
||||
%1 = shufflevector <8 x double> %a1, <8 x double> undef, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 undef, i32 2, i32 3, i32 0, i32 1>
|
||||
ret <8 x double> %1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user