forked from OSchip/llvm-project
[X86][XOP] Add XOP target to vXi16/vXi8 shuffle tests
Helps with bit rotation test coverage for PR44379
This commit is contained in:
parent
2278073125
commit
0ae119f835
|
@ -1,12 +1,14 @@
|
||||||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=ALL --check-prefix=SSE --check-prefix=SSE2
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefixes=ALL,SSE,SSE2
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+ssse3 | FileCheck %s --check-prefix=ALL --check-prefix=SSE --check-prefix=SSSE3
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+ssse3 | FileCheck %s --check-prefixes=ALL,SSE,SSSE3
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse4.1 | FileCheck %s --check-prefix=ALL --check-prefix=SSE --check-prefix=SSE41
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse4.1 | FileCheck %s --check-prefixes=ALL,SSE,SSE41
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX1OR2 --check-prefix=AVX1
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefixes=ALL,AVX,AVX1OR2,AVX1
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX1OR2 --check-prefix=AVX2OR512VL --check-prefix=AVX2 --check-prefix=AVX2-SLOW
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefixes=ALL,AVX,AVX1OR2,AVX2OR512VL,AVX2,AVX2-SLOW
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2,+fast-variable-shuffle | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX1OR2 --check-prefix=AVX2OR512VL --check-prefix=AVX2 --check-prefix=AVX2-FAST
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2,+fast-variable-shuffle | FileCheck %s --check-prefixes=ALL,AVX,AVX1OR2,AVX2OR512VL,AVX2,AVX2-FAST
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512vl,+avx512bw,+fast-variable-shuffle | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX2OR512VL --check-prefix=AVX512VL --check-prefix=AVX512VLBW
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512vl,+avx512bw,+fast-variable-shuffle | FileCheck %s --check-prefixes=ALL,AVX,AVX2OR512VL,AVX512VL,AVX512VLBW
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512vl,+avx512bw,+avx512vbmi,+fast-variable-shuffle | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX2OR512VL --check-prefix=AVX512VL --check-prefix=AVX512VLVBMI
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512vl,+avx512bw,+avx512vbmi,+fast-variable-shuffle | FileCheck %s --check-prefixes=ALL,AVX,AVX2OR512VL,AVX512VL,AVX512VLVBMI
|
||||||
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+xop,+avx | FileCheck %s --check-prefixes=ALL,AVX,AVX1OR2,XOP,XOPAVX1
|
||||||
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+xop,+avx2 | FileCheck %s --check-prefixes=ALL,AVX,AVX1OR2,XOP,XOPAVX2
|
||||||
|
|
||||||
define <16 x i8> @shuffle_v16i8_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00(<16 x i8> %a, <16 x i8> %b) {
|
define <16 x i8> @shuffle_v16i8_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00(<16 x i8> %a, <16 x i8> %b) {
|
||||||
; SSE2-LABEL: shuffle_v16i8_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00:
|
; SSE2-LABEL: shuffle_v16i8_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00:
|
||||||
|
@ -38,6 +40,17 @@ define <16 x i8> @shuffle_v16i8_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00(
|
||||||
; AVX2OR512VL: # %bb.0:
|
; AVX2OR512VL: # %bb.0:
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastb %xmm0, %xmm0
|
; AVX2OR512VL-NEXT: vpbroadcastb %xmm0, %xmm0
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: shuffle_v16i8_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
||||||
|
; XOPAVX1-NEXT: vpshufb %xmm1, %xmm0, %xmm0
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: shuffle_v16i8_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastb %xmm0, %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0>
|
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0>
|
||||||
ret <16 x i8> %shuffle
|
ret <16 x i8> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -124,6 +137,12 @@ define <16 x i8> @shuffle_v16i8_00_00_00_00_01_01_01_01_02_02_02_02_03_03_03_03(
|
||||||
; AVX512VL: # %bb.0:
|
; AVX512VL: # %bb.0:
|
||||||
; AVX512VL-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3]
|
; AVX512VL-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3]
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v16i8_00_00_00_00_01_01_01_01_02_02_02_02_03_03_03_03:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
|
||||||
|
; XOP-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0,0,1,1,2,2,3,3]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 2, i32 2, i32 2, i32 2, i32 3, i32 3, i32 3, i32 3>
|
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 2, i32 2, i32 2, i32 2, i32 3, i32 3, i32 3, i32 3>
|
||||||
ret <16 x i8> %shuffle
|
ret <16 x i8> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -156,6 +175,12 @@ define <16 x i8> @shuffle_v16i8_04_04_04_04_05_05_05_05_06_06_06_06_07_07_07_07(
|
||||||
; AVX512VL: # %bb.0:
|
; AVX512VL: # %bb.0:
|
||||||
; AVX512VL-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7]
|
; AVX512VL-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7]
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v16i8_04_04_04_04_05_05_05_05_06_06_06_06_07_07_07_07:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
|
||||||
|
; XOP-NEXT: vpunpckhwd {{.*#+}} xmm0 = xmm0[4,4,5,5,6,6,7,7]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 4, i32 4, i32 4, i32 4, i32 5, i32 5, i32 5, i32 5, i32 6, i32 6, i32 6, i32 6, i32 7, i32 7, i32 7, i32 7>
|
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 4, i32 4, i32 4, i32 4, i32 5, i32 5, i32 5, i32 5, i32 6, i32 6, i32 6, i32 6, i32 7, i32 7, i32 7, i32 7>
|
||||||
ret <16 x i8> %shuffle
|
ret <16 x i8> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -220,6 +245,17 @@ define <16 x i8> @shuffle_v16i8_0101010101010101(<16 x i8> %a, <16 x i8> %b) {
|
||||||
; AVX2OR512VL: # %bb.0:
|
; AVX2OR512VL: # %bb.0:
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastw %xmm0, %xmm0
|
; AVX2OR512VL-NEXT: vpbroadcastw %xmm0, %xmm0
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: shuffle_v16i8_0101010101010101:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,2,3,4,5,6,7]
|
||||||
|
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,0,0,0]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: shuffle_v16i8_0101010101010101:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastw %xmm0, %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1>
|
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1>
|
||||||
ret <16 x i8> %shuffle
|
ret <16 x i8> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -304,6 +340,17 @@ define <16 x i8> @shuffle_v16i8_16_00_16_01_16_02_16_03_16_04_16_05_16_06_16_07(
|
||||||
; AVX512VLVBMI-NEXT: vpermi2b %xmm0, %xmm1, %xmm2
|
; AVX512VLVBMI-NEXT: vpermi2b %xmm0, %xmm1, %xmm2
|
||||||
; AVX512VLVBMI-NEXT: vmovdqa %xmm2, %xmm0
|
; AVX512VLVBMI-NEXT: vmovdqa %xmm2, %xmm0
|
||||||
; AVX512VLVBMI-NEXT: retq
|
; AVX512VLVBMI-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: shuffle_v16i8_16_00_16_01_16_02_16_03_16_04_16_05_16_06_16_07:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vpperm {{.*#+}} xmm0 = xmm1[0],xmm0[0],xmm1[0],xmm0[1],xmm1[0],xmm0[2],xmm1[0],xmm0[3],xmm1[0],xmm0[4],xmm1[0],xmm0[5],xmm1[0],xmm0[6],xmm1[0],xmm0[7]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: shuffle_v16i8_16_00_16_01_16_02_16_03_16_04_16_05_16_06_16_07:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastb %xmm1, %xmm1
|
||||||
|
; XOPAVX2-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3],xmm1[4],xmm0[4],xmm1[5],xmm0[5],xmm1[6],xmm0[6],xmm1[7],xmm0[7]
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 16, i32 0, i32 16, i32 1, i32 16, i32 2, i32 16, i32 3, i32 16, i32 4, i32 16, i32 5, i32 16, i32 6, i32 16, i32 7>
|
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 16, i32 0, i32 16, i32 1, i32 16, i32 2, i32 16, i32 3, i32 16, i32 4, i32 16, i32 5, i32 16, i32 6, i32 16, i32 7>
|
||||||
ret <16 x i8> %shuffle
|
ret <16 x i8> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -465,11 +512,17 @@ define <16 x i8> @shuffle_v16i8_03_02_01_00_07_06_05_04_19_18_17_16_23_22_21_20(
|
||||||
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[6,4,2,0,14,12,10,8,7,5,3,1,15,13,11,9]
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[6,4,2,0,14,12,10,8,7,5,3,1,15,13,11,9]
|
||||||
; SSE41-NEXT: retq
|
; SSE41-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX1OR2-LABEL: shuffle_v16i8_03_02_01_00_07_06_05_04_19_18_17_16_23_22_21_20:
|
; AVX1-LABEL: shuffle_v16i8_03_02_01_00_07_06_05_04_19_18_17_16_23_22_21_20:
|
||||||
; AVX1OR2: # %bb.0:
|
; AVX1: # %bb.0:
|
||||||
; AVX1OR2-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
|
; AVX1-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
|
||||||
; AVX1OR2-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[6,4,2,0,14,12,10,8,7,5,3,1,15,13,11,9]
|
; AVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[6,4,2,0,14,12,10,8,7,5,3,1,15,13,11,9]
|
||||||
; AVX1OR2-NEXT: retq
|
; AVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; AVX2-LABEL: shuffle_v16i8_03_02_01_00_07_06_05_04_19_18_17_16_23_22_21_20:
|
||||||
|
; AVX2: # %bb.0:
|
||||||
|
; AVX2-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
|
||||||
|
; AVX2-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[6,4,2,0,14,12,10,8,7,5,3,1,15,13,11,9]
|
||||||
|
; AVX2-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX512VLBW-LABEL: shuffle_v16i8_03_02_01_00_07_06_05_04_19_18_17_16_23_22_21_20:
|
; AVX512VLBW-LABEL: shuffle_v16i8_03_02_01_00_07_06_05_04_19_18_17_16_23_22_21_20:
|
||||||
; AVX512VLBW: # %bb.0:
|
; AVX512VLBW: # %bb.0:
|
||||||
|
@ -482,6 +535,11 @@ define <16 x i8> @shuffle_v16i8_03_02_01_00_07_06_05_04_19_18_17_16_23_22_21_20(
|
||||||
; AVX512VLVBMI-NEXT: vmovdqa {{.*#+}} xmm2 = [3,2,1,0,7,6,5,4,19,18,17,16,23,22,21,20]
|
; AVX512VLVBMI-NEXT: vmovdqa {{.*#+}} xmm2 = [3,2,1,0,7,6,5,4,19,18,17,16,23,22,21,20]
|
||||||
; AVX512VLVBMI-NEXT: vpermt2b %xmm1, %xmm2, %xmm0
|
; AVX512VLVBMI-NEXT: vpermt2b %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VLVBMI-NEXT: retq
|
; AVX512VLVBMI-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v16i8_03_02_01_00_07_06_05_04_19_18_17_16_23_22_21_20:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[3,2,1,0,7,6,5,4],xmm1[3,2,1,0,7,6,5,4]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 3, i32 2, i32 1, i32 0, i32 7, i32 6, i32 5, i32 4, i32 19, i32 18, i32 17, i32 16, i32 23, i32 22, i32 21, i32 20>
|
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 3, i32 2, i32 1, i32 0, i32 7, i32 6, i32 5, i32 4, i32 19, i32 18, i32 17, i32 16, i32 23, i32 22, i32 21, i32 20>
|
||||||
ret <16 x i8> %shuffle
|
ret <16 x i8> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -519,12 +577,19 @@ define <16 x i8> @shuffle_v16i8_03_02_01_00_31_30_29_28_11_10_09_08_23_22_21_20(
|
||||||
; SSE41-NEXT: punpckldq {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
|
; SSE41-NEXT: punpckldq {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
|
||||||
; SSE41-NEXT: retq
|
; SSE41-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX1OR2-LABEL: shuffle_v16i8_03_02_01_00_31_30_29_28_11_10_09_08_23_22_21_20:
|
; AVX1-LABEL: shuffle_v16i8_03_02_01_00_31_30_29_28_11_10_09_08_23_22_21_20:
|
||||||
; AVX1OR2: # %bb.0:
|
; AVX1: # %bb.0:
|
||||||
; AVX1OR2-NEXT: vpshufb {{.*#+}} xmm1 = xmm1[15,14,13,12,7,6,5,4,u,u,u,u,u,u,u,u]
|
; AVX1-NEXT: vpshufb {{.*#+}} xmm1 = xmm1[15,14,13,12,7,6,5,4,u,u,u,u,u,u,u,u]
|
||||||
; AVX1OR2-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[3,2,1,0,11,10,9,8,u,u,u,u,u,u,u,u]
|
; AVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[3,2,1,0,11,10,9,8,u,u,u,u,u,u,u,u]
|
||||||
; AVX1OR2-NEXT: vpunpckldq {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
|
; AVX1-NEXT: vpunpckldq {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
|
||||||
; AVX1OR2-NEXT: retq
|
; AVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; AVX2-LABEL: shuffle_v16i8_03_02_01_00_31_30_29_28_11_10_09_08_23_22_21_20:
|
||||||
|
; AVX2: # %bb.0:
|
||||||
|
; AVX2-NEXT: vpshufb {{.*#+}} xmm1 = xmm1[15,14,13,12,7,6,5,4,u,u,u,u,u,u,u,u]
|
||||||
|
; AVX2-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[3,2,1,0,11,10,9,8,u,u,u,u,u,u,u,u]
|
||||||
|
; AVX2-NEXT: vpunpckldq {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
|
||||||
|
; AVX2-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX512VLBW-LABEL: shuffle_v16i8_03_02_01_00_31_30_29_28_11_10_09_08_23_22_21_20:
|
; AVX512VLBW-LABEL: shuffle_v16i8_03_02_01_00_31_30_29_28_11_10_09_08_23_22_21_20:
|
||||||
; AVX512VLBW: # %bb.0:
|
; AVX512VLBW: # %bb.0:
|
||||||
|
@ -538,6 +603,11 @@ define <16 x i8> @shuffle_v16i8_03_02_01_00_31_30_29_28_11_10_09_08_23_22_21_20(
|
||||||
; AVX512VLVBMI-NEXT: vmovdqa {{.*#+}} xmm2 = [3,2,1,0,31,30,29,28,11,10,9,8,23,22,21,20]
|
; AVX512VLVBMI-NEXT: vmovdqa {{.*#+}} xmm2 = [3,2,1,0,31,30,29,28,11,10,9,8,23,22,21,20]
|
||||||
; AVX512VLVBMI-NEXT: vpermt2b %xmm1, %xmm2, %xmm0
|
; AVX512VLVBMI-NEXT: vpermt2b %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VLVBMI-NEXT: retq
|
; AVX512VLVBMI-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v16i8_03_02_01_00_31_30_29_28_11_10_09_08_23_22_21_20:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[3,2,1,0],xmm1[15,14,13,12],xmm0[11,10,9,8],xmm1[7,6,5,4]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 3, i32 2, i32 1, i32 0, i32 31, i32 30, i32 29, i32 28, i32 11, i32 10, i32 9, i32 8, i32 23, i32 22, i32 21, i32 20>
|
%shuffle = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 3, i32 2, i32 1, i32 0, i32 31, i32 30, i32 29, i32 28, i32 11, i32 10, i32 9, i32 8, i32 23, i32 22, i32 21, i32 20>
|
||||||
ret <16 x i8> %shuffle
|
ret <16 x i8> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -758,11 +828,17 @@ define <16 x i8> @shuffle_v16i8_5_6_7_8_9_10_27_28_29_30_31_0_1_2_3_4(<16 x i8>
|
||||||
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15,0,1,2,3,3,6,6,7,8,9]
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15,0,1,2,3,3,6,6,7,8,9]
|
||||||
; SSE41-NEXT: retq
|
; SSE41-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX1OR2-LABEL: shuffle_v16i8_5_6_7_8_9_10_27_28_29_30_31_0_1_2_3_4:
|
; AVX1-LABEL: shuffle_v16i8_5_6_7_8_9_10_27_28_29_30_31_0_1_2_3_4:
|
||||||
; AVX1OR2: # %bb.0:
|
; AVX1: # %bb.0:
|
||||||
; AVX1OR2-NEXT: vpalignr {{.*#+}} xmm0 = xmm1[11,12,13,14,15],xmm0[0,1,2,3,4,5,6,7,8,9,10]
|
; AVX1-NEXT: vpalignr {{.*#+}} xmm0 = xmm1[11,12,13,14,15],xmm0[0,1,2,3,4,5,6,7,8,9,10]
|
||||||
; AVX1OR2-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15,0,1,2,3,3,6,6,7,8,9]
|
; AVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15,0,1,2,3,3,6,6,7,8,9]
|
||||||
; AVX1OR2-NEXT: retq
|
; AVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; AVX2-LABEL: shuffle_v16i8_5_6_7_8_9_10_27_28_29_30_31_0_1_2_3_4:
|
||||||
|
; AVX2: # %bb.0:
|
||||||
|
; AVX2-NEXT: vpalignr {{.*#+}} xmm0 = xmm1[11,12,13,14,15],xmm0[0,1,2,3,4,5,6,7,8,9,10]
|
||||||
|
; AVX2-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15,0,1,2,3,3,6,6,7,8,9]
|
||||||
|
; AVX2-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX512VLBW-LABEL: shuffle_v16i8_5_6_7_8_9_10_27_28_29_30_31_0_1_2_3_4:
|
; AVX512VLBW-LABEL: shuffle_v16i8_5_6_7_8_9_10_27_28_29_30_31_0_1_2_3_4:
|
||||||
; AVX512VLBW: # %bb.0:
|
; AVX512VLBW: # %bb.0:
|
||||||
|
@ -775,6 +851,11 @@ define <16 x i8> @shuffle_v16i8_5_6_7_8_9_10_27_28_29_30_31_0_1_2_3_4(<16 x i8>
|
||||||
; AVX512VLVBMI-NEXT: vmovdqa {{.*#+}} xmm2 = [5,6,7,8,9,10,27,28,29,30,30,1,1,2,3,4]
|
; AVX512VLVBMI-NEXT: vmovdqa {{.*#+}} xmm2 = [5,6,7,8,9,10,27,28,29,30,30,1,1,2,3,4]
|
||||||
; AVX512VLVBMI-NEXT: vpermt2b %xmm1, %xmm2, %xmm0
|
; AVX512VLVBMI-NEXT: vpermt2b %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VLVBMI-NEXT: retq
|
; AVX512VLVBMI-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v16i8_5_6_7_8_9_10_27_28_29_30_31_0_1_2_3_4:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[5,6,7,8,9,10],xmm1[11,12,13,14,14],xmm0[1,1,2,3,4]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%1 = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 27, i32 28, i32 29, i32 30, i32 30, i32 1, i32 1, i32 2, i32 3, i32 4>
|
%1 = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 27, i32 28, i32 29, i32 30, i32 30, i32 1, i32 1, i32 2, i32 3, i32 4>
|
||||||
ret <16 x i8> %1
|
ret <16 x i8> %1
|
||||||
}
|
}
|
||||||
|
@ -1519,12 +1600,19 @@ define <16 x i8> @shuffe_v16i8_shift_00_02_04_06_08_10_12_14_16_18_20_22_24_26_2
|
||||||
; SSE-NEXT: packuswb %xmm1, %xmm0
|
; SSE-NEXT: packuswb %xmm1, %xmm0
|
||||||
; SSE-NEXT: retq
|
; SSE-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX1OR2-LABEL: shuffe_v16i8_shift_00_02_04_06_08_10_12_14_16_18_20_22_24_26_28_30:
|
; AVX1-LABEL: shuffe_v16i8_shift_00_02_04_06_08_10_12_14_16_18_20_22_24_26_28_30:
|
||||||
; AVX1OR2: # %bb.0:
|
; AVX1: # %bb.0:
|
||||||
; AVX1OR2-NEXT: vpsrlw $8, %xmm0, %xmm0
|
; AVX1-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||||
; AVX1OR2-NEXT: vpsrlw $8, %xmm1, %xmm1
|
; AVX1-NEXT: vpsrlw $8, %xmm1, %xmm1
|
||||||
; AVX1OR2-NEXT: vpackuswb %xmm1, %xmm0, %xmm0
|
; AVX1-NEXT: vpackuswb %xmm1, %xmm0, %xmm0
|
||||||
; AVX1OR2-NEXT: retq
|
; AVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; AVX2-LABEL: shuffe_v16i8_shift_00_02_04_06_08_10_12_14_16_18_20_22_24_26_28_30:
|
||||||
|
; AVX2: # %bb.0:
|
||||||
|
; AVX2-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||||
|
; AVX2-NEXT: vpsrlw $8, %xmm1, %xmm1
|
||||||
|
; AVX2-NEXT: vpackuswb %xmm1, %xmm0, %xmm0
|
||||||
|
; AVX2-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX512VLBW-LABEL: shuffe_v16i8_shift_00_02_04_06_08_10_12_14_16_18_20_22_24_26_28_30:
|
; AVX512VLBW-LABEL: shuffe_v16i8_shift_00_02_04_06_08_10_12_14_16_18_20_22_24_26_28_30:
|
||||||
; AVX512VLBW: # %bb.0:
|
; AVX512VLBW: # %bb.0:
|
||||||
|
@ -1538,6 +1626,11 @@ define <16 x i8> @shuffe_v16i8_shift_00_02_04_06_08_10_12_14_16_18_20_22_24_26_2
|
||||||
; AVX512VLVBMI-NEXT: vmovdqa {{.*#+}} xmm2 = [1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31]
|
; AVX512VLVBMI-NEXT: vmovdqa {{.*#+}} xmm2 = [1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31]
|
||||||
; AVX512VLVBMI-NEXT: vpermt2b %xmm1, %xmm2, %xmm0
|
; AVX512VLVBMI-NEXT: vpermt2b %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VLVBMI-NEXT: retq
|
; AVX512VLVBMI-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffe_v16i8_shift_00_02_04_06_08_10_12_14_16_18_20_22_24_26_28_30:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[1,3,5,7,9,11,13,15],xmm1[1,3,5,7,9,11,13,15]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%1 = lshr <8 x i16> %a0, <i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8>
|
%1 = lshr <8 x i16> %a0, <i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8>
|
||||||
%2 = lshr <8 x i16> %a1, <i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8>
|
%2 = lshr <8 x i16> %a1, <i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8>
|
||||||
%3 = bitcast <8 x i16> %1 to <16 x i8>
|
%3 = bitcast <8 x i16> %1 to <16 x i8>
|
||||||
|
@ -1737,6 +1830,12 @@ define <16 x i8> @shuffle_v16i8_01_02_03_04_05_06_zz_zz_zz_zz_zz_zz_zz_zz_zz_zz(
|
||||||
; AVX512VL: # %bb.0:
|
; AVX512VL: # %bb.0:
|
||||||
; AVX512VL-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[1,2,3,4,5,6],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
; AVX512VL-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[1,2,3,4,5,6],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v16i8_01_02_03_04_05_06_zz_zz_zz_zz_zz_zz_zz_zz_zz_zz:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6]
|
||||||
|
; XOP-NEXT: vpsrldq {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <16 x i8> %a, <16 x i8> <i8 0, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef>, <16 x i32> <i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16>
|
%shuffle = shufflevector <16 x i8> %a, <16 x i8> <i8 0, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef>, <16 x i32> <i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16>
|
||||||
ret <16 x i8> %shuffle
|
ret <16 x i8> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1769,6 +1868,12 @@ define <16 x i8> @shuffle_v16i8_zz_zz_zz_zz_zz_zz_zz_zz_zz_zz_01_02_03_04_05_06(
|
||||||
; AVX512VL: # %bb.0:
|
; AVX512VL: # %bb.0:
|
||||||
; AVX512VL-NEXT: vpshufb {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm0[1,2,3,4,5,6]
|
; AVX512VL-NEXT: vpshufb {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm0[1,2,3,4,5,6]
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v16i8_zz_zz_zz_zz_zz_zz_zz_zz_zz_zz_01_02_03_04_05_06:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpsrldq {{.*#+}} xmm0 = xmm0[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],zero
|
||||||
|
; XOP-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <16 x i8> %a, <16 x i8> <i8 0, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef>, <16 x i32> <i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6>
|
%shuffle = shufflevector <16 x i8> %a, <16 x i8> <i8 0, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef, i8 undef>, <16 x i32> <i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6>
|
||||||
ret <16 x i8> %shuffle
|
ret <16 x i8> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1834,6 +1939,12 @@ define <16 x i8> @shuffle_v16i8_02_03_04_05_06_07_00_01_10_11_12_13_14_15_08_09(
|
||||||
; AVX512VL: # %bb.0:
|
; AVX512VL: # %bb.0:
|
||||||
; AVX512VL-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3,4,5,6,7,0,1,10,11,12,13,14,15,8,9]
|
; AVX512VL-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3,4,5,6,7,0,1,10,11,12,13,14,15,8,9]
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v16i8_02_03_04_05_06_07_00_01_10_11_12_13_14_15_08_09:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[1,2,3,0,4,5,6,7]
|
||||||
|
; XOP-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,5,6,7,4]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <16 x i8> %a, <16 x i8> undef, <16 x i32> <i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 0, i32 1, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 8, i32 9>
|
%shuffle = shufflevector <16 x i8> %a, <16 x i8> undef, <16 x i32> <i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 0, i32 1, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 8, i32 9>
|
||||||
ret <16 x i8> %shuffle
|
ret <16 x i8> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1863,13 +1974,21 @@ define <16 x i8> @PR12412(<16 x i8> %inval1, <16 x i8> %inval2) {
|
||||||
; SSE41-NEXT: punpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
; SSE41-NEXT: punpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||||
; SSE41-NEXT: retq
|
; SSE41-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX1OR2-LABEL: PR12412:
|
; AVX1-LABEL: PR12412:
|
||||||
; AVX1OR2: # %bb.0: # %entry
|
; AVX1: # %bb.0: # %entry
|
||||||
; AVX1OR2-NEXT: vmovdqa {{.*#+}} xmm2 = <0,2,4,6,8,10,12,14,u,u,u,u,u,u,u,u>
|
; AVX1-NEXT: vmovdqa {{.*#+}} xmm2 = <0,2,4,6,8,10,12,14,u,u,u,u,u,u,u,u>
|
||||||
; AVX1OR2-NEXT: vpshufb %xmm2, %xmm1, %xmm1
|
; AVX1-NEXT: vpshufb %xmm2, %xmm1, %xmm1
|
||||||
; AVX1OR2-NEXT: vpshufb %xmm2, %xmm0, %xmm0
|
; AVX1-NEXT: vpshufb %xmm2, %xmm0, %xmm0
|
||||||
; AVX1OR2-NEXT: vpunpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
; AVX1-NEXT: vpunpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||||
; AVX1OR2-NEXT: retq
|
; AVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; AVX2-LABEL: PR12412:
|
||||||
|
; AVX2: # %bb.0: # %entry
|
||||||
|
; AVX2-NEXT: vmovdqa {{.*#+}} xmm2 = <0,2,4,6,8,10,12,14,u,u,u,u,u,u,u,u>
|
||||||
|
; AVX2-NEXT: vpshufb %xmm2, %xmm1, %xmm1
|
||||||
|
; AVX2-NEXT: vpshufb %xmm2, %xmm0, %xmm0
|
||||||
|
; AVX2-NEXT: vpunpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||||
|
; AVX2-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX512VLBW-LABEL: PR12412:
|
; AVX512VLBW-LABEL: PR12412:
|
||||||
; AVX512VLBW: # %bb.0: # %entry
|
; AVX512VLBW: # %bb.0: # %entry
|
||||||
|
@ -1884,6 +2003,11 @@ define <16 x i8> @PR12412(<16 x i8> %inval1, <16 x i8> %inval2) {
|
||||||
; AVX512VLVBMI-NEXT: vmovdqa {{.*#+}} xmm2 = [0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30]
|
; AVX512VLVBMI-NEXT: vmovdqa {{.*#+}} xmm2 = [0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30]
|
||||||
; AVX512VLVBMI-NEXT: vpermt2b %xmm1, %xmm2, %xmm0
|
; AVX512VLVBMI-NEXT: vpermt2b %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VLVBMI-NEXT: retq
|
; AVX512VLVBMI-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: PR12412:
|
||||||
|
; XOP: # %bb.0: # %entry
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[0,2,4,6,8,10,12,14],xmm1[0,2,4,6,8,10,12,14]
|
||||||
|
; XOP-NEXT: retq
|
||||||
entry:
|
entry:
|
||||||
%0 = shufflevector <16 x i8> %inval1, <16 x i8> %inval2, <16 x i32> <i32 0, i32 2, i32 4, i32 6, i32 8, i32 10, i32 12, i32 14, i32 16, i32 18, i32 20, i32 22, i32 24, i32 26, i32 28, i32 30>
|
%0 = shufflevector <16 x i8> %inval1, <16 x i8> %inval2, <16 x i32> <i32 0, i32 2, i32 4, i32 6, i32 8, i32 10, i32 12, i32 14, i32 16, i32 18, i32 20, i32 22, i32 24, i32 26, i32 28, i32 30>
|
||||||
ret <16 x i8> %0
|
ret <16 x i8> %0
|
||||||
|
@ -1956,6 +2080,18 @@ define <16 x i8> @insert_dup_mem_v16i8_i32(i32* %ptr) {
|
||||||
; AVX2OR512VL: # %bb.0:
|
; AVX2OR512VL: # %bb.0:
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastb (%rdi), %xmm0
|
; AVX2OR512VL-NEXT: vpbroadcastb (%rdi), %xmm0
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_mem_v16i8_i32:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vmovd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
||||||
|
; XOPAVX1-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
||||||
|
; XOPAVX1-NEXT: vpshufb %xmm1, %xmm0, %xmm0
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_mem_v16i8_i32:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastb (%rdi), %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i32, i32* %ptr, align 4
|
%tmp = load i32, i32* %ptr, align 4
|
||||||
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
||||||
%tmp2 = bitcast <4 x i32> %tmp1 to <16 x i8>
|
%tmp2 = bitcast <4 x i32> %tmp1 to <16 x i8>
|
||||||
|
@ -2001,6 +2137,19 @@ define <16 x i8> @insert_dup_mem_v16i8_sext_i8(i8* %ptr) {
|
||||||
; AVX2OR512VL: # %bb.0:
|
; AVX2OR512VL: # %bb.0:
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastb (%rdi), %xmm0
|
; AVX2OR512VL-NEXT: vpbroadcastb (%rdi), %xmm0
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_mem_v16i8_sext_i8:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: movzbl (%rdi), %eax
|
||||||
|
; XOPAVX1-NEXT: vmovd %eax, %xmm0
|
||||||
|
; XOPAVX1-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
||||||
|
; XOPAVX1-NEXT: vpshufb %xmm1, %xmm0, %xmm0
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_mem_v16i8_sext_i8:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastb (%rdi), %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i8, i8* %ptr, align 1
|
%tmp = load i8, i8* %ptr, align 1
|
||||||
%tmp1 = sext i8 %tmp to i32
|
%tmp1 = sext i8 %tmp to i32
|
||||||
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
||||||
|
@ -2040,6 +2189,17 @@ define <16 x i8> @insert_dup_elt1_mem_v16i8_i32(i32* %ptr) {
|
||||||
; AVX2OR512VL: # %bb.0:
|
; AVX2OR512VL: # %bb.0:
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastb 1(%rdi), %xmm0
|
; AVX2OR512VL-NEXT: vpbroadcastb 1(%rdi), %xmm0
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_elt1_mem_v16i8_i32:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vmovd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
||||||
|
; XOPAVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_elt1_mem_v16i8_i32:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastb 1(%rdi), %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i32, i32* %ptr, align 4
|
%tmp = load i32, i32* %ptr, align 4
|
||||||
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
||||||
%tmp2 = bitcast <4 x i32> %tmp1 to <16 x i8>
|
%tmp2 = bitcast <4 x i32> %tmp1 to <16 x i8>
|
||||||
|
@ -2078,6 +2238,17 @@ define <16 x i8> @insert_dup_elt2_mem_v16i8_i32(i32* %ptr) {
|
||||||
; AVX2OR512VL: # %bb.0:
|
; AVX2OR512VL: # %bb.0:
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastb 2(%rdi), %xmm0
|
; AVX2OR512VL-NEXT: vpbroadcastb 2(%rdi), %xmm0
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_elt2_mem_v16i8_i32:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vmovd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
||||||
|
; XOPAVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_elt2_mem_v16i8_i32:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastb 2(%rdi), %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i32, i32* %ptr, align 4
|
%tmp = load i32, i32* %ptr, align 4
|
||||||
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
||||||
%tmp2 = bitcast <4 x i32> %tmp1 to <16 x i8>
|
%tmp2 = bitcast <4 x i32> %tmp1 to <16 x i8>
|
||||||
|
@ -2130,6 +2301,21 @@ define <16 x i8> @insert_dup_elt1_mem_v16i8_sext_i8(i8* %ptr) {
|
||||||
; AVX512VL-NEXT: shrl $8, %eax
|
; AVX512VL-NEXT: shrl $8, %eax
|
||||||
; AVX512VL-NEXT: vpbroadcastb %eax, %xmm0
|
; AVX512VL-NEXT: vpbroadcastb %eax, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_elt1_mem_v16i8_sext_i8:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: movsbl (%rdi), %eax
|
||||||
|
; XOPAVX1-NEXT: vmovd %eax, %xmm0
|
||||||
|
; XOPAVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_elt1_mem_v16i8_sext_i8:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: movsbl (%rdi), %eax
|
||||||
|
; XOPAVX2-NEXT: shrl $8, %eax
|
||||||
|
; XOPAVX2-NEXT: vmovd %eax, %xmm0
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastb %xmm0, %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i8, i8* %ptr, align 1
|
%tmp = load i8, i8* %ptr, align 1
|
||||||
%tmp1 = sext i8 %tmp to i32
|
%tmp1 = sext i8 %tmp to i32
|
||||||
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
||||||
|
@ -2183,6 +2369,21 @@ define <16 x i8> @insert_dup_elt2_mem_v16i8_sext_i8(i8* %ptr) {
|
||||||
; AVX512VL-NEXT: shrl $16, %eax
|
; AVX512VL-NEXT: shrl $16, %eax
|
||||||
; AVX512VL-NEXT: vpbroadcastb %eax, %xmm0
|
; AVX512VL-NEXT: vpbroadcastb %eax, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_elt2_mem_v16i8_sext_i8:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: movsbl (%rdi), %eax
|
||||||
|
; XOPAVX1-NEXT: vmovd %eax, %xmm0
|
||||||
|
; XOPAVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_elt2_mem_v16i8_sext_i8:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: movsbl (%rdi), %eax
|
||||||
|
; XOPAVX2-NEXT: shrl $16, %eax
|
||||||
|
; XOPAVX2-NEXT: vmovd %eax, %xmm0
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastb %xmm0, %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i8, i8* %ptr, align 1
|
%tmp = load i8, i8* %ptr, align 1
|
||||||
%tmp1 = sext i8 %tmp to i32
|
%tmp1 = sext i8 %tmp to i32
|
||||||
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
||||||
|
@ -2300,6 +2501,22 @@ define <16 x i8> @PR31301(i8* nocapture readonly %x, i8* nocapture readonly %y)
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastb (%rsi), %xmm1
|
; AVX2OR512VL-NEXT: vpbroadcastb (%rsi), %xmm1
|
||||||
; AVX2OR512VL-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
|
; AVX2OR512VL-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: PR31301:
|
||||||
|
; XOPAVX1: # %bb.0: # %entry
|
||||||
|
; XOPAVX1-NEXT: movzbl (%rdi), %eax
|
||||||
|
; XOPAVX1-NEXT: vmovd %eax, %xmm0
|
||||||
|
; XOPAVX1-NEXT: movzbl (%rsi), %eax
|
||||||
|
; XOPAVX1-NEXT: vmovd %eax, %xmm1
|
||||||
|
; XOPAVX1-NEXT: vpperm {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[0],xmm1[0],xmm0[0],xmm1[0],xmm0[0],xmm1[0],xmm0[0],xmm1[0],xmm0[0],xmm1[0],xmm0[0],xmm1[0],xmm0[0],xmm1[0]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: PR31301:
|
||||||
|
; XOPAVX2: # %bb.0: # %entry
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastb (%rdi), %xmm0
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastb (%rsi), %xmm1
|
||||||
|
; XOPAVX2-NEXT: vpunpcklbw {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
entry:
|
entry:
|
||||||
%0 = load i8, i8* %x, align 1
|
%0 = load i8, i8* %x, align 1
|
||||||
%1 = insertelement <16 x i8> undef, i8 %0, i32 0
|
%1 = insertelement <16 x i8> undef, i8 %0, i32 0
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=ALL --check-prefix=SSE --check-prefix=SSE2
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefixes=ALL,SSE,SSE2
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+ssse3 | FileCheck %s --check-prefix=ALL --check-prefix=SSE --check-prefix=SSSE3
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+ssse3 | FileCheck %s --check-prefixes=ALL,SSE,SSSE3
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse4.1 | FileCheck %s --check-prefix=ALL --check-prefix=SSE --check-prefix=SSE41
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse4.1 | FileCheck %s --check-prefixes=ALL,SSE,SSE41
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX1OR2 --check-prefix=AVX1
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefixes=ALL,AVX,AVX1OR2,AVX1
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX1OR2 --check-prefix=AVX2OR512VL --check-prefix=AVX2 --check-prefix=AVX2-SLOW
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefixes=ALL,AVX,AVX1OR2,AVX2OR512VL,AVX2,AVX2-SLOW
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2,+fast-variable-shuffle | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX1OR2 --check-prefix=AVX2OR512VL --check-prefix=AVX2 --check-prefix=AVX2-FAST
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2,+fast-variable-shuffle | FileCheck %s --check-prefixes=ALL,AVX,AVX1OR2,AVX2OR512VL,AVX2,AVX2-FAST
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512vl,+avx512bw | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX2OR512VL --check-prefix=AVX512VL --check-prefix=AVX512VL-SLOW
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512vl,+avx512bw | FileCheck %s --check-prefixes=ALL,AVX,AVX2OR512VL,AVX512VL,AVX512VL-SLOW
|
||||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512vl,+avx512bw,+fast-variable-shuffle | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX2OR512VL --check-prefix=AVX512VL --check-prefix=AVX512VL-FAST
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512vl,+avx512bw,+fast-variable-shuffle | FileCheck %s --check-prefixes=ALL,AVX,AVX2OR512VL,AVX512VL,AVX512VL-FAST
|
||||||
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+xop,+avx | FileCheck %s --check-prefixes=ALL,AVX,AVX1OR2,XOP,XOPAVX1
|
||||||
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+xop,+avx2 | FileCheck %s --check-prefixes=ALL,AVX,AVX1OR2,XOP,XOPAVX2
|
||||||
|
|
||||||
define <8 x i16> @shuffle_v8i16_01012323(<8 x i16> %a, <8 x i16> %b) {
|
define <8 x i16> @shuffle_v8i16_01012323(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; SSE-LABEL: shuffle_v8i16_01012323:
|
; SSE-LABEL: shuffle_v8i16_01012323:
|
||||||
|
@ -77,6 +79,17 @@ define <8 x i16> @shuffle_v8i16_00000000(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX2OR512VL: # %bb.0:
|
; AVX2OR512VL: # %bb.0:
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastw %xmm0, %xmm0
|
; AVX2OR512VL-NEXT: vpbroadcastw %xmm0, %xmm0
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: shuffle_v8i16_00000000:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,2,3,4,5,6,7]
|
||||||
|
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,0,0,0]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: shuffle_v8i16_00000000:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastw %xmm0, %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -114,6 +127,12 @@ define <8 x i16> @shuffle_v8i16_00004444(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,0,1,0,1,0,1,8,9,8,9,8,9,8,9]
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,0,1,0,1,0,1,8,9,8,9,8,9,8,9]
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_00004444:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
|
||||||
|
; XOP-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 4, i32 4, i32 4, i32 4>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 4, i32 4, i32 4, i32 4>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -177,6 +196,12 @@ define <8 x i16> @shuffle_v8i16_31206745(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[6,7,2,3,4,5,0,1,12,13,14,15,8,9,10,11]
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[6,7,2,3,4,5,0,1,12,13,14,15,8,9,10,11]
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_31206745:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[3,1,2,0,4,5,6,7]
|
||||||
|
; XOP-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,3,2]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 3, i32 1, i32 2, i32 0, i32 6, i32 7, i32 4, i32 5>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 3, i32 1, i32 2, i32 0, i32 6, i32 7, i32 4, i32 5>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -252,6 +277,12 @@ define <8 x i16> @shuffle_v8i16_23026745(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5,6,7,0,1,4,5,12,13,14,15,8,9,10,11]
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5,6,7,0,1,4,5,12,13,14,15,8,9,10,11]
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_23026745:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[2,3,0,2,4,5,6,7]
|
||||||
|
; XOP-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,3,2]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 2, i32 3, i32 0, i32 2, i32 6, i32 7, i32 4, i32 5>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 2, i32 3, i32 0, i32 2, i32 6, i32 7, i32 4, i32 5>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -289,6 +320,12 @@ define <8 x i16> @shuffle_v8i16_23016747(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5,6,7,0,1,2,3,12,13,14,15,8,9,14,15]
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5,6,7,0,1,2,3,12,13,14,15,8,9,14,15]
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_23016747:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[1,0,2,3]
|
||||||
|
; XOP-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,7,4,7]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 2, i32 3, i32 0, i32 1, i32 6, i32 7, i32 4, i32 7>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 2, i32 3, i32 0, i32 1, i32 6, i32 7, i32 4, i32 7>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -714,6 +751,12 @@ define <8 x i16> @shuffle_v8i16_04404567(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,8,9,10,11,12,13,14,15]
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,8,9,10,11,12,13,14,15]
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_04404567:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
||||||
|
; XOP-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,2,2,0,4,5,6,7]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 4, i32 4, i32 0, i32 4, i32 5, i32 6, i32 7>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 4, i32 4, i32 0, i32 4, i32 5, i32 6, i32 7>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1045,18 +1088,30 @@ define <8 x i16> @shuffle_v8i16_08196e7f(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; SSE-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
; SSE-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
||||||
; SSE-NEXT: retq
|
; SSE-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX1OR2-LABEL: shuffle_v8i16_08196e7f:
|
; AVX1-LABEL: shuffle_v8i16_08196e7f:
|
||||||
; AVX1OR2: # %bb.0:
|
; AVX1: # %bb.0:
|
||||||
; AVX1OR2-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[0,3,2,3]
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[0,3,2,3]
|
||||||
; AVX1OR2-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,3,2,3]
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,3,2,3]
|
||||||
; AVX1OR2-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
; AVX1-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
||||||
; AVX1OR2-NEXT: retq
|
; AVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; AVX2-LABEL: shuffle_v8i16_08196e7f:
|
||||||
|
; AVX2: # %bb.0:
|
||||||
|
; AVX2-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[0,3,2,3]
|
||||||
|
; AVX2-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,3,2,3]
|
||||||
|
; AVX2-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
||||||
|
; AVX2-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX512VL-LABEL: shuffle_v8i16_08196e7f:
|
; AVX512VL-LABEL: shuffle_v8i16_08196e7f:
|
||||||
; AVX512VL: # %bb.0:
|
; AVX512VL: # %bb.0:
|
||||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,8,1,9,6,14,7,15]
|
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,8,1,9,6,14,7,15]
|
||||||
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_08196e7f:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[0,1],xmm1[0,1],xmm0[2,3],xmm1[2,3],xmm0[12,13],xmm1[12,13],xmm0[14,15],xmm1[14,15]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 8, i32 1, i32 9, i32 6, i32 14, i32 7, i32 15>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 8, i32 1, i32 9, i32 6, i32 14, i32 7, i32 15>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1069,18 +1124,30 @@ define <8 x i16> @shuffle_v8i16_0c1d6879(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; SSE-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
; SSE-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
||||||
; SSE-NEXT: retq
|
; SSE-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX1OR2-LABEL: shuffle_v8i16_0c1d6879:
|
; AVX1-LABEL: shuffle_v8i16_0c1d6879:
|
||||||
; AVX1OR2: # %bb.0:
|
; AVX1: # %bb.0:
|
||||||
; AVX1OR2-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[2,0,2,3]
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[2,0,2,3]
|
||||||
; AVX1OR2-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,3,2,3]
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,3,2,3]
|
||||||
; AVX1OR2-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
; AVX1-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
||||||
; AVX1OR2-NEXT: retq
|
; AVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; AVX2-LABEL: shuffle_v8i16_0c1d6879:
|
||||||
|
; AVX2: # %bb.0:
|
||||||
|
; AVX2-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[2,0,2,3]
|
||||||
|
; AVX2-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,3,2,3]
|
||||||
|
; AVX2-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
||||||
|
; AVX2-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX512VL-LABEL: shuffle_v8i16_0c1d6879:
|
; AVX512VL-LABEL: shuffle_v8i16_0c1d6879:
|
||||||
; AVX512VL: # %bb.0:
|
; AVX512VL: # %bb.0:
|
||||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,12,1,13,6,8,7,9]
|
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,12,1,13,6,8,7,9]
|
||||||
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_0c1d6879:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[0,1],xmm1[8,9],xmm0[2,3],xmm1[10,11],xmm0[12,13],xmm1[0,1],xmm0[14,15],xmm1[2,3]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 12, i32 1, i32 13, i32 6, i32 8, i32 7, i32 9>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 12, i32 1, i32 13, i32 6, i32 8, i32 7, i32 9>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1118,6 +1185,11 @@ define <8 x i16> @shuffle_v8i16_109832ba(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [1,0,9,8,3,2,11,10]
|
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [1,0,9,8,3,2,11,10]
|
||||||
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_109832ba:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[2,3,0,1],xmm1[2,3,0,1],xmm0[6,7,4,5],xmm1[6,7,4,5]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 1, i32 0, i32 9, i32 8, i32 3, i32 2, i32 11, i32 10>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 1, i32 0, i32 9, i32 8, i32 3, i32 2, i32 11, i32 10>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1199,6 +1271,11 @@ define <8 x i16> @shuffle_v8i16_0213cedf(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,2,1,3,12,14,13,15]
|
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,2,1,3,12,14,13,15]
|
||||||
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_0213cedf:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[0,1,4,5,2,3,6,7],xmm1[8,9,12,13,10,11,14,15]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 2, i32 1, i32 3, i32 12, i32 14, i32 13, i32 15>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 2, i32 1, i32 3, i32 12, i32 14, i32 13, i32 15>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1253,6 +1330,11 @@ define <8 x i16> @shuffle_v8i16_443aXXXX(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [4,4,3,10,4,5,6,7]
|
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [4,4,3,10,4,5,6,7]
|
||||||
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_443aXXXX:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[8,9,8,9,6,7],xmm1[4,5],xmm0[8,9,10,11,12,13,14,15]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 4, i32 4, i32 3, i32 10, i32 undef, i32 undef, i32 undef, i32 undef>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 4, i32 4, i32 3, i32 10, i32 undef, i32 undef, i32 undef, i32 undef>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1297,6 +1379,11 @@ define <8 x i16> @shuffle_v8i16_032dXXXX(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,3,2,13,0,13,0,1]
|
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,3,2,13,0,13,0,1]
|
||||||
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_032dXXXX:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[0,1,6,7,4,5],xmm1[10,11],xmm0[0,1],xmm1[10,11],xmm0[0,1,2,3]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 3, i32 2, i32 13, i32 undef, i32 undef, i32 undef, i32 undef>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 3, i32 2, i32 13, i32 undef, i32 undef, i32 undef, i32 undef>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1406,6 +1493,18 @@ define <8 x i16> @shuffle_v8i16_XXXXcde3(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-FAST-NEXT: vpermi2w %xmm0, %xmm1, %xmm2
|
; AVX512VL-FAST-NEXT: vpermi2w %xmm0, %xmm1, %xmm2
|
||||||
; AVX512VL-FAST-NEXT: vmovdqa %xmm2, %xmm0
|
; AVX512VL-FAST-NEXT: vmovdqa %xmm2, %xmm0
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: shuffle_v8i16_XXXXcde3:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,0,1]
|
||||||
|
; XOPAVX1-NEXT: vpblendw {{.*#+}} xmm0 = xmm1[0,1,2,3,4,5,6],xmm0[7]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: shuffle_v8i16_XXXXcde3:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastq %xmm0, %xmm0
|
||||||
|
; XOPAVX2-NEXT: vpblendw {{.*#+}} xmm0 = xmm1[0,1,2,3,4,5,6],xmm0[7]
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 undef, i32 12, i32 13, i32 14, i32 3>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 undef, i32 12, i32 13, i32 14, i32 3>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1499,6 +1598,11 @@ define <8 x i16> @shuffle_v8i16_012dcde3(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,1,2,13,12,13,14,3]
|
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,1,2,13,12,13,14,3]
|
||||||
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_012dcde3:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5],xmm1[10,11,8,9,10,11,12,13],xmm0[6,7]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 1, i32 2, i32 13, i32 12, i32 13, i32 14, i32 3>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 1, i32 2, i32 13, i32 12, i32 13, i32 14, i32 3>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1589,6 +1693,11 @@ define <8 x i16> @shuffle_v8i16_XXX1X579(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,1,2,1,4,5,7,9]
|
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [0,1,2,1,4,5,7,9]
|
||||||
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_XXX1X579:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,2,3,8,9,10,11,14,15],xmm1[2,3]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 1, i32 undef, i32 5, i32 7, i32 9>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 1, i32 undef, i32 5, i32 7, i32 9>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -1635,6 +1744,11 @@ define <8 x i16> @shuffle_v8i16_XX4X8acX(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [4,5,4,5,8,10,12,10]
|
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm2 = [4,5,4,5,8,10,12,10]
|
||||||
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
; AVX512VL-NEXT: vpermt2w %xmm1, %xmm2, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_XX4X8acX:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm0[8,9,10,11,8,9,10,11],xmm1[0,1,4,5,8,9,4,5]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 undef, i32 4, i32 undef, i32 8, i32 10, i32 12, i32 undef>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 undef, i32 4, i32 undef, i32 8, i32 10, i32 12, i32 undef>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -2214,6 +2328,18 @@ define <8 x i16> @shuffle_v8i16_01100110(<8 x i16> %a) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,2,3,0,1,0,1,2,3,2,3,0,1]
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,2,3,0,1,0,1,2,3,2,3,0,1]
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: shuffle_v8i16_01100110:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,1,1,0,4,5,6,7]
|
||||||
|
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,0,1]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: shuffle_v8i16_01100110:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,1,1,0,4,5,6,7]
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastq %xmm0, %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 1, i32 0>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 1, i32 1, i32 0, i32 0, i32 1, i32 1, i32 0>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -2252,6 +2378,18 @@ define <8 x i16> @shuffle_v8i16_01u0u110(<8 x i16> %a) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,2,3,0,1,0,1,2,3,2,3,0,1]
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,2,3,0,1,0,1,2,3,2,3,0,1]
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: shuffle_v8i16_01u0u110:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,1,1,0,4,5,6,7]
|
||||||
|
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,0,1]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: shuffle_v8i16_01u0u110:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,1,1,0,4,5,6,7]
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastq %xmm0, %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 1, i32 undef, i32 0, i32 undef, i32 1, i32 1, i32 0>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 1, i32 undef, i32 0, i32 undef, i32 1, i32 1, i32 0>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -2290,6 +2428,12 @@ define <8 x i16> @shuffle_v8i16_467uu675(<8 x i16> %a) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[8,9,12,13,14,15,10,11,8,9,12,13,14,15,10,11]
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[8,9,12,13,14,15,10,11,8,9,12,13,14,15,10,11]
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_467uu675:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,6,7,5]
|
||||||
|
; XOP-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[2,3,2,3]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 4, i32 6, i32 7, i32 undef, i32 undef, i32 6, i32 7, i32 5>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 4, i32 6, i32 7, i32 undef, i32 undef, i32 6, i32 7, i32 5>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -2328,6 +2472,12 @@ define <8 x i16> @shuffle_v8i16_10325476(<8 x i16> %a) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3,0,1,6,7,4,5,10,11,8,9,14,15,12,13]
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3,0,1,6,7,4,5,10,11,8,9,14,15,12,13]
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_10325476:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[1,0,3,2,4,5,6,7]
|
||||||
|
; XOP-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,5,4,7,6]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 1, i32 0, i32 3, i32 2, i32 5, i32 4, i32 7, i32 6>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 1, i32 0, i32 3, i32 2, i32 5, i32 4, i32 7, i32 6>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -2366,6 +2516,12 @@ define <8 x i16> @shuffle_v8i16_12305674(<8 x i16> %a) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3,4,5,6,7,0,1,10,11,12,13,14,15,8,9]
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3,4,5,6,7,0,1,10,11,12,13,14,15,8,9]
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_12305674:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[1,2,3,0,4,5,6,7]
|
||||||
|
; XOP-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,5,6,7,4]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 1, i32 2, i32 3, i32 0, i32 5, i32 6, i32 7, i32 4>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 1, i32 2, i32 3, i32 0, i32 5, i32 6, i32 7, i32 4>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -2586,12 +2742,19 @@ define <8 x i16> @shuffle_v8i16_fu3ucc5u(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; SSE-NEXT: movdqa %xmm1, %xmm0
|
; SSE-NEXT: movdqa %xmm1, %xmm0
|
||||||
; SSE-NEXT: retq
|
; SSE-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX1OR2-LABEL: shuffle_v8i16_fu3ucc5u:
|
; AVX1-LABEL: shuffle_v8i16_fu3ucc5u:
|
||||||
; AVX1OR2: # %bb.0:
|
; AVX1: # %bb.0:
|
||||||
; AVX1OR2-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
|
; AVX1-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
|
||||||
; AVX1OR2-NEXT: vpshufhw {{.*#+}} xmm1 = xmm1[0,1,2,3,7,5,4,4]
|
; AVX1-NEXT: vpshufhw {{.*#+}} xmm1 = xmm1[0,1,2,3,7,5,4,4]
|
||||||
; AVX1OR2-NEXT: vpunpckhdq {{.*#+}} xmm0 = xmm1[2],xmm0[2],xmm1[3],xmm0[3]
|
; AVX1-NEXT: vpunpckhdq {{.*#+}} xmm0 = xmm1[2],xmm0[2],xmm1[3],xmm0[3]
|
||||||
; AVX1OR2-NEXT: retq
|
; AVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; AVX2-LABEL: shuffle_v8i16_fu3ucc5u:
|
||||||
|
; AVX2: # %bb.0:
|
||||||
|
; AVX2-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
|
||||||
|
; AVX2-NEXT: vpshufhw {{.*#+}} xmm1 = xmm1[0,1,2,3,7,5,4,4]
|
||||||
|
; AVX2-NEXT: vpunpckhdq {{.*#+}} xmm0 = xmm1[2],xmm0[2],xmm1[3],xmm0[3]
|
||||||
|
; AVX2-NEXT: retq
|
||||||
;
|
;
|
||||||
; AVX512VL-LABEL: shuffle_v8i16_fu3ucc5u:
|
; AVX512VL-LABEL: shuffle_v8i16_fu3ucc5u:
|
||||||
; AVX512VL: # %bb.0:
|
; AVX512VL: # %bb.0:
|
||||||
|
@ -2599,6 +2762,11 @@ define <8 x i16> @shuffle_v8i16_fu3ucc5u(<8 x i16> %a, <8 x i16> %b) {
|
||||||
; AVX512VL-NEXT: vpermi2w %xmm0, %xmm1, %xmm2
|
; AVX512VL-NEXT: vpermi2w %xmm0, %xmm1, %xmm2
|
||||||
; AVX512VL-NEXT: vmovdqa %xmm2, %xmm0
|
; AVX512VL-NEXT: vmovdqa %xmm2, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_fu3ucc5u:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpperm {{.*#+}} xmm0 = xmm1[14,15,10,11],xmm0[6,7,8,9],xmm1[8,9,8,9],xmm0[10,11,12,13]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 15, i32 undef, i32 3, i32 undef, i32 12, i32 12, i32 5, i32 undef>
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 15, i32 undef, i32 3, i32 undef, i32 12, i32 12, i32 5, i32 undef>
|
||||||
ret <8 x i16> %shuffle
|
ret <8 x i16> %shuffle
|
||||||
}
|
}
|
||||||
|
@ -2653,6 +2821,11 @@ define <8 x i16> @shuffle_v8i16_9zzzuuuu(<8 x i16> %x) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_9zzzuuuu:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: extrq {{.*#+}} xmm0 = xmm0[2,3],zero,zero,zero,zero,zero,zero,xmm0[u,u,u,u,u,u,u,u]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%r = shufflevector <8 x i16> zeroinitializer, <8 x i16> %x, <8 x i32> <i32 9, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
|
%r = shufflevector <8 x i16> zeroinitializer, <8 x i16> %x, <8 x i32> <i32 9, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
|
||||||
ret <8 x i16> %r
|
ret <8 x i16> %r
|
||||||
}
|
}
|
||||||
|
@ -2692,6 +2865,11 @@ define <8 x i16> @shuffle_v8i16_2zzzuuuu(<8 x i16> %x) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_2zzzuuuu:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: extrq {{.*#+}} xmm0 = xmm0[4,5],zero,zero,zero,zero,zero,zero,xmm0[u,u,u,u,u,u,u,u]
|
||||||
|
; XOP-NEXT: retq
|
||||||
%r = shufflevector <8 x i16> %x, <8 x i16> zeroinitializer, <8 x i32> <i32 2, i32 9, i32 10, i32 11, i32 undef, i32 undef, i32 undef, i32 undef>
|
%r = shufflevector <8 x i16> %x, <8 x i16> zeroinitializer, <8 x i32> <i32 2, i32 9, i32 10, i32 11, i32 undef, i32 undef, i32 undef, i32 undef>
|
||||||
ret <8 x i16> %r
|
ret <8 x i16> %r
|
||||||
}
|
}
|
||||||
|
@ -2730,6 +2908,12 @@ define <8 x i16> @shuffle_v8i16_3uu6zzzz(<8 x i16> %x) {
|
||||||
; AVX512VL-FAST: # %bb.0:
|
; AVX512VL-FAST: # %bb.0:
|
||||||
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13],zero,zero,zero,zero,zero,zero,zero,zero
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13],zero,zero,zero,zero,zero,zero,zero,zero
|
||||||
; AVX512VL-FAST-NEXT: retq
|
; AVX512VL-FAST-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOP-LABEL: shuffle_v8i16_3uu6zzzz:
|
||||||
|
; XOP: # %bb.0:
|
||||||
|
; XOP-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
|
||||||
|
; XOP-NEXT: vpsrldq {{.*#+}} xmm0 = xmm0[8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero
|
||||||
|
; XOP-NEXT: retq
|
||||||
%r = shufflevector <8 x i16> %x, <8 x i16> zeroinitializer, <8 x i32> <i32 3, i32 undef, i32 undef, i32 6, i32 8, i32 8, i32 8, i32 8>
|
%r = shufflevector <8 x i16> %x, <8 x i16> zeroinitializer, <8 x i32> <i32 3, i32 undef, i32 undef, i32 6, i32 8, i32 8, i32 8, i32 8>
|
||||||
ret <8 x i16> %r
|
ret <8 x i16> %r
|
||||||
}
|
}
|
||||||
|
@ -2786,6 +2970,18 @@ define <8 x i16> @insert_dup_mem_v8i16_i32(i32* %ptr) {
|
||||||
; AVX2OR512VL: # %bb.0:
|
; AVX2OR512VL: # %bb.0:
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastw (%rdi), %xmm0
|
; AVX2OR512VL-NEXT: vpbroadcastw (%rdi), %xmm0
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_mem_v8i16_i32:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vmovd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
||||||
|
; XOPAVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,2,3,4,5,6,7]
|
||||||
|
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,0,0,0]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_mem_v8i16_i32:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastw (%rdi), %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i32, i32* %ptr, align 4
|
%tmp = load i32, i32* %ptr, align 4
|
||||||
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
||||||
%tmp2 = bitcast <4 x i32> %tmp1 to <8 x i16>
|
%tmp2 = bitcast <4 x i32> %tmp1 to <8 x i16>
|
||||||
|
@ -2814,6 +3010,19 @@ define <8 x i16> @insert_dup_mem_v8i16_sext_i16(i16* %ptr) {
|
||||||
; AVX2OR512VL: # %bb.0:
|
; AVX2OR512VL: # %bb.0:
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastw (%rdi), %xmm0
|
; AVX2OR512VL-NEXT: vpbroadcastw (%rdi), %xmm0
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_mem_v8i16_sext_i16:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: movzwl (%rdi), %eax
|
||||||
|
; XOPAVX1-NEXT: vmovd %eax, %xmm0
|
||||||
|
; XOPAVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,2,3,4,5,6,7]
|
||||||
|
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,0,0,0]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_mem_v8i16_sext_i16:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastw (%rdi), %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i16, i16* %ptr, align 2
|
%tmp = load i16, i16* %ptr, align 2
|
||||||
%tmp1 = sext i16 %tmp to i32
|
%tmp1 = sext i16 %tmp to i32
|
||||||
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
||||||
|
@ -2841,6 +3050,18 @@ define <8 x i16> @insert_dup_elt1_mem_v8i16_i32(i32* %ptr) {
|
||||||
; AVX2OR512VL: # %bb.0:
|
; AVX2OR512VL: # %bb.0:
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastw 2(%rdi), %xmm0
|
; AVX2OR512VL-NEXT: vpbroadcastw 2(%rdi), %xmm0
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_elt1_mem_v8i16_i32:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vmovd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
||||||
|
; XOPAVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[1,1,2,3,4,5,6,7]
|
||||||
|
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,0,0,0]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_elt1_mem_v8i16_i32:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastw 2(%rdi), %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i32, i32* %ptr, align 4
|
%tmp = load i32, i32* %ptr, align 4
|
||||||
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
||||||
%tmp2 = bitcast <4 x i32> %tmp1 to <8 x i16>
|
%tmp2 = bitcast <4 x i32> %tmp1 to <8 x i16>
|
||||||
|
@ -2879,6 +3100,18 @@ define <8 x i16> @insert_dup_elt3_mem_v8i16_i32(i32* %ptr) {
|
||||||
; AVX2OR512VL: # %bb.0:
|
; AVX2OR512VL: # %bb.0:
|
||||||
; AVX2OR512VL-NEXT: vpbroadcastw 2(%rdi), %xmm0
|
; AVX2OR512VL-NEXT: vpbroadcastw 2(%rdi), %xmm0
|
||||||
; AVX2OR512VL-NEXT: retq
|
; AVX2OR512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_elt3_mem_v8i16_i32:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: vbroadcastss (%rdi), %xmm0
|
||||||
|
; XOPAVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[3,3,2,3,4,5,6,7]
|
||||||
|
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,0,0,0]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_elt3_mem_v8i16_i32:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastw 2(%rdi), %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i32, i32* %ptr, align 4
|
%tmp = load i32, i32* %ptr, align 4
|
||||||
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 1
|
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 1
|
||||||
%tmp2 = bitcast <4 x i32> %tmp1 to <8 x i16>
|
%tmp2 = bitcast <4 x i32> %tmp1 to <8 x i16>
|
||||||
|
@ -2917,6 +3150,22 @@ define <8 x i16> @insert_dup_elt1_mem_v8i16_sext_i16(i16* %ptr) {
|
||||||
; AVX512VL-NEXT: shrl $16, %eax
|
; AVX512VL-NEXT: shrl $16, %eax
|
||||||
; AVX512VL-NEXT: vpbroadcastw %eax, %xmm0
|
; AVX512VL-NEXT: vpbroadcastw %eax, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_elt1_mem_v8i16_sext_i16:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: movswl (%rdi), %eax
|
||||||
|
; XOPAVX1-NEXT: vmovd %eax, %xmm0
|
||||||
|
; XOPAVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[1,1,2,3,4,5,6,7]
|
||||||
|
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,0,0,0]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_elt1_mem_v8i16_sext_i16:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: movswl (%rdi), %eax
|
||||||
|
; XOPAVX2-NEXT: shrl $16, %eax
|
||||||
|
; XOPAVX2-NEXT: vmovd %eax, %xmm0
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastw %xmm0, %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i16, i16* %ptr, align 2
|
%tmp = load i16, i16* %ptr, align 2
|
||||||
%tmp1 = sext i16 %tmp to i32
|
%tmp1 = sext i16 %tmp to i32
|
||||||
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
||||||
|
@ -2969,6 +3218,21 @@ define <8 x i16> @insert_dup_elt3_mem_v8i16_sext_i16(i16* %ptr) {
|
||||||
; AVX512VL-NEXT: shrl $16, %eax
|
; AVX512VL-NEXT: shrl $16, %eax
|
||||||
; AVX512VL-NEXT: vpbroadcastw %eax, %xmm0
|
; AVX512VL-NEXT: vpbroadcastw %eax, %xmm0
|
||||||
; AVX512VL-NEXT: retq
|
; AVX512VL-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX1-LABEL: insert_dup_elt3_mem_v8i16_sext_i16:
|
||||||
|
; XOPAVX1: # %bb.0:
|
||||||
|
; XOPAVX1-NEXT: movswl (%rdi), %eax
|
||||||
|
; XOPAVX1-NEXT: vmovd %eax, %xmm0
|
||||||
|
; XOPAVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3]
|
||||||
|
; XOPAVX1-NEXT: retq
|
||||||
|
;
|
||||||
|
; XOPAVX2-LABEL: insert_dup_elt3_mem_v8i16_sext_i16:
|
||||||
|
; XOPAVX2: # %bb.0:
|
||||||
|
; XOPAVX2-NEXT: movswl (%rdi), %eax
|
||||||
|
; XOPAVX2-NEXT: shrl $16, %eax
|
||||||
|
; XOPAVX2-NEXT: vmovd %eax, %xmm0
|
||||||
|
; XOPAVX2-NEXT: vpbroadcastw %xmm0, %xmm0
|
||||||
|
; XOPAVX2-NEXT: retq
|
||||||
%tmp = load i16, i16* %ptr, align 2
|
%tmp = load i16, i16* %ptr, align 2
|
||||||
%tmp1 = sext i16 %tmp to i32
|
%tmp1 = sext i16 %tmp to i32
|
||||||
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 1
|
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 1
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue