mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
[x86] Add some vector-register broadcast operations to the 256-bit v4
tests which were missing them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218657 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cbb188bffc
commit
52b072d73f
@ -3,6 +3,21 @@
|
|||||||
|
|
||||||
target triple = "x86_64-unknown-unknown"
|
target triple = "x86_64-unknown-unknown"
|
||||||
|
|
||||||
|
define <4 x double> @shuffle_v4f64_0000(<4 x double> %a, <4 x double> %b) {
|
||||||
|
; AVX1-LABEL: @shuffle_v4f64_0000
|
||||||
|
; AVX1: # BB#0:
|
||||||
|
; AVX1-NEXT: vunpcklpd {{.*}} # xmm0 = xmm0[0,0]
|
||||||
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm0, %ymm0
|
||||||
|
; AVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; AVX2-LABEL: @shuffle_v4f64_0000
|
||||||
|
; AVX2: # BB#0:
|
||||||
|
; AVX2-NEXT: vpermpd {{.*}} # ymm0 = ymm0[0,0,0,0]
|
||||||
|
; AVX2-NEXT: retq
|
||||||
|
%shuffle = shufflevector <4 x double> %a, <4 x double> %b, <4 x i32> <i32 0, i32 0, i32 0, i32 0>
|
||||||
|
ret <4 x double> %shuffle
|
||||||
|
}
|
||||||
|
|
||||||
define <4 x double> @shuffle_v4f64_0001(<4 x double> %a, <4 x double> %b) {
|
define <4 x double> @shuffle_v4f64_0001(<4 x double> %a, <4 x double> %b) {
|
||||||
; AVX1-LABEL: @shuffle_v4f64_0001
|
; AVX1-LABEL: @shuffle_v4f64_0001
|
||||||
; AVX1: # BB#0:
|
; AVX1: # BB#0:
|
||||||
@ -293,6 +308,21 @@ define <4 x double> @shuffle_v4f64_0167(<4 x double> %a, <4 x double> %b) {
|
|||||||
ret <4 x double> %shuffle
|
ret <4 x double> %shuffle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
define <4 x i64> @shuffle_v4i64_0000(<4 x i64> %a, <4 x i64> %b) {
|
||||||
|
; AVX1-LABEL: @shuffle_v4i64_0000
|
||||||
|
; AVX1: # BB#0:
|
||||||
|
; AVX1-NEXT: vunpcklpd {{.*}} # xmm0 = xmm0[0,0]
|
||||||
|
; AVX1-NEXT: vinsertf128 $1, %xmm0, %ymm0, %ymm0
|
||||||
|
; AVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; AVX2-LABEL: @shuffle_v4i64_0000
|
||||||
|
; AVX2: # BB#0:
|
||||||
|
; AVX2-NEXT: vpermq {{.*}} # ymm0 = ymm0[0,0,0,0]
|
||||||
|
; AVX2-NEXT: retq
|
||||||
|
%shuffle = shufflevector <4 x i64> %a, <4 x i64> %b, <4 x i32> <i32 0, i32 0, i32 0, i32 0>
|
||||||
|
ret <4 x i64> %shuffle
|
||||||
|
}
|
||||||
|
|
||||||
define <4 x i64> @shuffle_v4i64_0001(<4 x i64> %a, <4 x i64> %b) {
|
define <4 x i64> @shuffle_v4i64_0001(<4 x i64> %a, <4 x i64> %b) {
|
||||||
; AVX1-LABEL: @shuffle_v4i64_0001
|
; AVX1-LABEL: @shuffle_v4i64_0001
|
||||||
; AVX1: # BB#0:
|
; AVX1: # BB#0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user