2015-11-24 05:33:58 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2017-06-21 22:23:02 +08:00
|
|
|
; 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 -mattr=+ssse3 | FileCheck %s --check-prefix=ALL --check-prefix=SSE --check-prefix=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=+avx | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX1OR2 --check-prefix=AVX1
|
2017-12-19 21:16:43 +08:00
|
|
|
; 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,+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=+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,+fast-variable-shuffle | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX2OR512VL --check-prefix=AVX512VL --check-prefix=AVX512VL-FAST
|
2014-06-27 19:23:44 +08:00
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_01012323(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_01012323:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_01012323:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-09-18 11:29:47 +08:00
|
|
|
; AVX-NEXT: vpermilps {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 1, i32 0, i32 1, i32 2, i32 3, i32 2, i32 3>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_67452301(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_67452301:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[3,2,1,0]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_67452301:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-09-18 11:29:47 +08:00
|
|
|
; AVX-NEXT: vpermilps {{.*#+}} xmm0 = xmm0[3,2,1,0]
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 6, i32 7, i32 4, i32 5, i32 2, i32 3, i32 0, i32 1>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_456789AB(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_456789AB:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: shufpd {{.*#+}} xmm0 = xmm0[1],xmm1[0]
|
2014-09-18 17:00:25 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_456789AB:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm1 = xmm0[8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5,6,7]
|
2014-09-18 17:00:25 +08:00
|
|
|
; SSSE3-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_456789AB:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm1 = xmm0[8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5,6,7]
|
|
|
|
; SSE41-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_456789AB:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm0[8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5,6,7]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_00000000(<8 x i16> %a, <8 x i16> %b) {
|
2016-01-22 06:07:41 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_00000000:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2016-01-22 06:07:41 +08:00
|
|
|
; SSE-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
|
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
|
|
|
; SSE-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2014-10-01 08:41:21 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_00000000:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2016-01-22 06:07:41 +08:00
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
2014-10-01 08:41:21 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-LABEL: shuffle_v8i16_00000000:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2OR512VL: # %bb.0:
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-NEXT: vpbroadcastw %xmm0, %xmm0
|
|
|
|
; AVX2OR512VL-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%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
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_00004444(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_00004444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
|
|
|
|
; SSE-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
2017-12-19 21:16:43 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_00004444:
|
|
|
|
; AVX1: # %bb.0:
|
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-SLOW-LABEL: shuffle_v8i16_00004444:
|
|
|
|
; AVX2-SLOW: # %bb.0:
|
|
|
|
; AVX2-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
|
|
|
|
; AVX2-SLOW-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
|
|
|
; AVX2-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-FAST-LABEL: shuffle_v8i16_00004444:
|
|
|
|
; AVX2-FAST: # %bb.0:
|
|
|
|
; AVX2-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,0,1,0,1,0,1,8,9,8,9,8,9,8,9]
|
|
|
|
; AVX2-FAST-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-SLOW-LABEL: shuffle_v8i16_00004444:
|
|
|
|
; AVX512VL-SLOW: # %bb.0:
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
|
|
|
; AVX512VL-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-FAST-LABEL: shuffle_v8i16_00004444:
|
|
|
|
; 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: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%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
|
|
|
|
}
|
2014-09-15 17:02:37 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_u0u1u2u3(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_u0u1u2u3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0,0,1,1,2,2,3,3]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_u0u1u2u3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0,0,1,1,2,2,3,3]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-15 17:02:37 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 0, i32 undef, i32 1, i32 undef, i32 2, i32 undef, i32 3>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_u4u5u6u7(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_u4u5u6u7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: punpckhwd {{.*#+}} xmm0 = xmm0[4,4,5,5,6,6,7,7]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_u4u5u6u7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpunpckhwd {{.*#+}} xmm0 = xmm0[4,4,5,5,6,6,7,7]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-15 17:02:37 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 4, i32 undef, i32 5, i32 undef, i32 6, i32 undef, i32 7>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
2014-06-27 19:23:44 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_31206745(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_31206745:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[3,1,2,0,4,5,6,7]
|
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,1,3,2]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
2017-12-19 21:16:43 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_31206745:
|
|
|
|
; AVX1: # %bb.0:
|
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[3,1,2,0,4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,3,2]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-SLOW-LABEL: shuffle_v8i16_31206745:
|
|
|
|
; AVX2-SLOW: # %bb.0:
|
|
|
|
; AVX2-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[3,1,2,0,4,5,6,7]
|
|
|
|
; AVX2-SLOW-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,3,2]
|
|
|
|
; AVX2-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-FAST-LABEL: shuffle_v8i16_31206745:
|
|
|
|
; AVX2-FAST: # %bb.0:
|
|
|
|
; AVX2-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[6,7,2,3,4,5,0,1,12,13,14,15,8,9,10,11]
|
|
|
|
; AVX2-FAST-NEXT: retq
|
|
|
|
;
|
2017-12-20 00:54:07 +08:00
|
|
|
; AVX512VL-SLOW-LABEL: shuffle_v8i16_31206745:
|
|
|
|
; AVX512VL-SLOW: # %bb.0:
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[3,1,2,0,4,5,6,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,3,2]
|
|
|
|
; AVX512VL-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-FAST-LABEL: shuffle_v8i16_31206745:
|
|
|
|
; 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: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%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
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_44440000(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_44440000:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[2,1,0,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_44440000:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,8,9,8,9,0,1,0,1,0,1,0,1]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_44440000:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,8,9,8,9,0,1,0,1,0,1,0,1]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_44440000:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,8,9,8,9,0,1,0,1,0,1,0,1]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 4, i32 4, i32 4, i32 4, i32 0, i32 0, i32 0, i32 0>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
2014-09-28 14:11:04 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_23016745(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_23016745:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,0,3,2]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_23016745:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-09-18 11:29:47 +08:00
|
|
|
; AVX-NEXT: vpermilps {{.*#+}} xmm0 = xmm0[1,0,3,2]
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-09-28 14:11:04 +08:00
|
|
|
%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 5>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_23026745(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_23026745:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[2,3,0,2,4,5,6,7]
|
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,1,3,2]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
2017-12-19 21:16:43 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_23026745:
|
|
|
|
; AVX1: # %bb.0:
|
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[2,3,0,2,4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,3,2]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-SLOW-LABEL: shuffle_v8i16_23026745:
|
|
|
|
; AVX2-SLOW: # %bb.0:
|
|
|
|
; AVX2-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[2,3,0,2,4,5,6,7]
|
|
|
|
; AVX2-SLOW-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,3,2]
|
|
|
|
; AVX2-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-FAST-LABEL: shuffle_v8i16_23026745:
|
|
|
|
; AVX2-FAST: # %bb.0:
|
|
|
|
; AVX2-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5,6,7,0,1,4,5,12,13,14,15,8,9,10,11]
|
|
|
|
; AVX2-FAST-NEXT: retq
|
|
|
|
;
|
2017-12-20 00:54:07 +08:00
|
|
|
; AVX512VL-SLOW-LABEL: shuffle_v8i16_23026745:
|
|
|
|
; AVX512VL-SLOW: # %bb.0:
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[2,3,0,2,4,5,6,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,3,2]
|
|
|
|
; AVX512VL-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-FAST-LABEL: shuffle_v8i16_23026745:
|
|
|
|
; 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: retq
|
2014-09-28 14:11:04 +08:00
|
|
|
%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
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_23016747(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_23016747:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,0,2,3]
|
|
|
|
; SSE-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,7,4,7]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
2017-12-19 21:16:43 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_23016747:
|
|
|
|
; AVX1: # %bb.0:
|
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[1,0,2,3]
|
|
|
|
; AVX1-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,7,4,7]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-SLOW-LABEL: shuffle_v8i16_23016747:
|
|
|
|
; AVX2-SLOW: # %bb.0:
|
|
|
|
; AVX2-SLOW-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[1,0,2,3]
|
|
|
|
; AVX2-SLOW-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,7,4,7]
|
|
|
|
; AVX2-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-FAST-LABEL: shuffle_v8i16_23016747:
|
|
|
|
; AVX2-FAST: # %bb.0:
|
|
|
|
; AVX2-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5,6,7,0,1,2,3,12,13,14,15,8,9,14,15]
|
|
|
|
; AVX2-FAST-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-SLOW-LABEL: shuffle_v8i16_23016747:
|
|
|
|
; AVX512VL-SLOW: # %bb.0:
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[1,0,2,3]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,7,4,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-FAST-LABEL: shuffle_v8i16_23016747:
|
|
|
|
; 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: retq
|
2014-09-28 14:11:04 +08:00
|
|
|
%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
|
|
|
|
}
|
2014-06-27 19:23:44 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_75643120(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_75643120:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[2,3,0,1]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[3,1,2,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,7,5,6,4]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_75643120:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[14,15,10,11,12,13,8,9,6,7,2,3,4,5,0,1]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_75643120:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[14,15,10,11,12,13,8,9,6,7,2,3,4,5,0,1]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_75643120:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[14,15,10,11,12,13,8,9,6,7,2,3,4,5,0,1]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 7, i32 5, i32 6, i32 4, i32 3, i32 1, i32 2, i32 0>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_10545410(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_10545410:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,0]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[1,0,3,2,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,5,4,7,6]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_10545410:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[2,3,0,1,10,11,8,9,10,11,8,9,2,3,0,1]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_10545410:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[2,3,0,1,10,11,8,9,10,11,8,9,2,3,0,1]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_10545410:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3,0,1,10,11,8,9,10,11,8,9,2,3,0,1]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 1, i32 0, i32 5, i32 4, i32 5, i32 4, i32 1, i32 0>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_54105410(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_54105410:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,0]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[3,2,1,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,5,4,7,6]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_54105410:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[10,11,8,9,2,3,0,1,10,11,8,9,2,3,0,1]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_54105410:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[10,11,8,9,2,3,0,1,10,11,8,9,2,3,0,1]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_54105410:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[10,11,8,9,2,3,0,1,10,11,8,9,2,3,0,1]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 5, i32 4, i32 1, i32 0, i32 5, i32 4, i32 1, i32 0>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_54101054(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_54101054:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,0]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[3,2,1,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,7,6,5,4]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_54101054:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[10,11,8,9,2,3,0,1,2,3,0,1,10,11,8,9]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_54101054:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[10,11,8,9,2,3,0,1,2,3,0,1,10,11,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_54101054:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[10,11,8,9,2,3,0,1,2,3,0,1,10,11,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 5, i32 4, i32 1, i32 0, i32 1, i32 0, i32 5, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_04400440(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_04400440:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,0]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,2,2,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,4,4,6]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_04400440:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,0,1,8,9,8,9,0,1]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_04400440:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,0,1,8,9,8,9,0,1]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_04400440:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,0,1,8,9,8,9,0,1]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 4, i32 4, i32 0, i32 0, i32 4, i32 4, i32 0>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_40044004(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_40044004:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,0]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[2,0,0,2,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,6,6,4]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_40044004:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,0,1,0,1,8,9,8,9,0,1,0,1,8,9]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_40044004:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,0,1,0,1,8,9,8,9,0,1,0,1,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_40044004:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[8,9,0,1,0,1,8,9,8,9,0,1,0,1,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 4, i32 0, i32 0, i32 4, i32 4, i32 0, i32 0, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_26405173(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_26405173:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,2,1,3,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,7,5,6,4]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,3,2,1]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[1,2,3,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,5,6,4,7]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_26405173:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[4,5,12,13,8,9,0,1,10,11,2,3,14,15,6,7]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_26405173:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[4,5,12,13,8,9,0,1,10,11,2,3,14,15,6,7]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_26405173:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5,12,13,8,9,0,1,10,11,2,3,14,15,6,7]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 2, i32 6, i32 4, i32 0, i32 5, i32 1, i32 7, i32 3>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_20645173(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_20645173:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,2,1,3,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,7,5,6,4]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,3,2,1]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[1,0,2,3,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,5,6,4,7]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_20645173:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[4,5,0,1,12,13,8,9,10,11,2,3,14,15,6,7]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_20645173:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[4,5,0,1,12,13,8,9,10,11,2,3,14,15,6,7]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_20645173:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5,0,1,12,13,8,9,10,11,2,3,14,15,6,7]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 2, i32 0, i32 6, i32 4, i32 5, i32 1, i32 7, i32 3>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_26401375(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_26401375:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,2,1,3,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,7,5,6,4]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,3,1,2]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[1,2,3,0,4,5,6,7]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_26401375:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[4,5,12,13,8,9,0,1,2,3,6,7,14,15,10,11]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_26401375:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[4,5,12,13,8,9,0,1,2,3,6,7,14,15,10,11]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_26401375:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5,12,13,8,9,0,1,2,3,6,7,14,15,10,11]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 2, i32 6, i32 4, i32 0, i32 1, i32 3, i32 7, i32 5>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
2014-08-07 18:14:27 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_66751643(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_66751643:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[3,1,2,3,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,6,5,7]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[2,3,2,0]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[1,1,3,2,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,7,5,4,6]
|
2014-08-07 18:14:27 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_66751643:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[12,13,12,13,14,15,10,11,2,3,12,13,8,9,6,7]
|
2014-08-07 18:14:27 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_66751643:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[12,13,12,13,14,15,10,11,2,3,12,13,8,9,6,7]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_66751643:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[12,13,12,13,14,15,10,11,2,3,12,13,8,9,6,7]
|
|
|
|
; AVX-NEXT: retq
|
2014-08-07 18:14:27 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 6, i32 6, i32 7, i32 5, i32 1, i32 6, i32 4, i32 3>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
2014-08-07 18:37:35 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_60514754(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_60514754:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,5,4,7]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[2,0,3,1,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,7,5,6]
|
2014-08-07 18:37:35 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_60514754:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[12,13,0,1,10,11,2,3,8,9,14,15,10,11,8,9]
|
2014-08-07 18:37:35 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_60514754:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[12,13,0,1,10,11,2,3,8,9,14,15,10,11,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_60514754:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[12,13,0,1,10,11,2,3,8,9,14,15,10,11,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-08-07 18:37:35 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> undef, <8 x i32> <i32 6, i32 0, i32 5, i32 1, i32 4, i32 7, i32 5, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
2014-06-27 19:23:44 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_00444444(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_00444444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,0,2,2,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_00444444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,0,1,8,9,8,9,8,9,8,9,8,9,8,9]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_00444444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,0,1,8,9,8,9,8,9,8,9,8,9,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_00444444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,0,1,8,9,8,9,8,9,8,9,8,9,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 0, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_44004444(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_44004444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[2,2,0,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_44004444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,0,1,0,1,8,9,8,9,8,9,8,9]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_44004444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,0,1,0,1,8,9,8,9,8,9,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_44004444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,0,1,0,1,8,9,8,9,8,9,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 4, i32 4, i32 0, i32 0, i32 4, i32 4, i32 4, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_04404444(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_04404444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,2,2,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_04404444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,8,9,8,9,8,9,8,9]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_04404444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,8,9,8,9,8,9,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_04404444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,8,9,8,9,8,9,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 4, i32 4, i32 0, i32 4, i32 4, i32 4, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_04400000(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_04400000:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,0,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,2,2,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_04400000:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,0,1,0,1,0,1,0,1]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_04400000:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,0,1,0,1,0,1,0,1]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_04400000:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,0,1,0,1,0,1,0,1]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 4, i32 4, i32 0, i32 0, i32 0, i32 0, i32 0>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_04404567(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_04404567:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; SSE-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,2,2,0,4,5,6,7]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
2017-12-19 21:16:43 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_04404567:
|
|
|
|
; AVX1: # %bb.0:
|
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,2,2,0,4,5,6,7]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-SLOW-LABEL: shuffle_v8i16_04404567:
|
|
|
|
; AVX2-SLOW: # %bb.0:
|
|
|
|
; AVX2-SLOW-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; AVX2-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,2,2,0,4,5,6,7]
|
|
|
|
; AVX2-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-FAST-LABEL: shuffle_v8i16_04404567:
|
|
|
|
; AVX2-FAST: # %bb.0:
|
|
|
|
; AVX2-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,8,9,10,11,12,13,14,15]
|
|
|
|
; AVX2-FAST-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-SLOW-LABEL: shuffle_v8i16_04404567:
|
|
|
|
; AVX512VL-SLOW: # %bb.0:
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,2,2,0,4,5,6,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-FAST-LABEL: shuffle_v8i16_04404567:
|
|
|
|
; 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: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%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
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0X444444(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_0X444444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,1,2,2,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_0X444444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,8,9,8,9,8,9,8,9,8,9,8,9]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_0X444444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,8,9,8,9,8,9,8,9,8,9,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_0X444444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,8,9,8,9,8,9,8,9,8,9,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 undef, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_44X04444(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_44X04444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[2,2,2,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_44X04444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,8,9,0,1,8,9,8,9,8,9,8,9]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_44X04444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,8,9,0,1,8,9,8,9,8,9,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_44X04444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,8,9,0,1,8,9,8,9,8,9,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 4, i32 4, i32 undef, i32 0, i32 4, i32 4, i32 4, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_X4404444(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_X4404444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,2,2,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,4,4,4]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_X4404444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,8,9,8,9,8,9,8,9]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_X4404444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,8,9,8,9,8,9,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_X4404444:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,8,9,8,9,0,1,8,9,8,9,8,9,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 4, i32 4, i32 0, i32 4, i32 4, i32 4, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0127XXXX(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_0127XXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,1,3]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,7,6,7]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_0127XXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,14,15,4,5,14,15,12,13,14,15]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_0127XXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,14,15,4,5,14,15,12,13,14,15]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2017-12-20 00:54:07 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_0127XXXX:
|
|
|
|
; AVX: # %bb.0:
|
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,14,15,4,5,14,15,12,13,14,15]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 1, i32 2, i32 7, i32 undef, i32 undef, i32 undef, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_XXXX4563(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_XXXX4563:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[3,1,2,0]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,3,2,3,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,1,2,0]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_XXXX4563:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[12,13,6,7,4,5,6,7,8,9,10,11,12,13,6,7]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_XXXX4563:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[12,13,6,7,4,5,6,7,8,9,10,11,12,13,6,7]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2017-12-20 00:54:07 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_XXXX4563:
|
|
|
|
; AVX: # %bb.0:
|
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[12,13,6,7,4,5,6,7,8,9,10,11,12,13,6,7]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 undef, i32 4, i32 5, i32 6, i32 3>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_4563XXXX(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_4563XXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[3,1,2,0]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,3,2,3,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[2,0,2,3]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_4563XXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,10,11,12,13,6,7,8,9,10,11,0,1,2,3]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_4563XXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,10,11,12,13,6,7,8,9,10,11,0,1,2,3]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2017-12-20 00:54:07 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_4563XXXX:
|
|
|
|
; AVX: # %bb.0:
|
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[8,9,10,11,12,13,6,7,8,9,10,11,0,1,2,3]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 4, i32 5, i32 6, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_01274563(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_01274563:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,1,3]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,5,4,7]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,3,1,2]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_01274563:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,14,15,8,9,10,11,12,13,6,7]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_01274563:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,14,15,8,9,10,11,12,13,6,7]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2017-12-20 00:54:07 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_01274563:
|
|
|
|
; AVX: # %bb.0:
|
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,14,15,8,9,10,11,12,13,6,7]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 1, i32 2, i32 7, i32 4, i32 5, i32 6, i32 3>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_45630127(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_45630127:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[3,1,2,0]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,3,2,1,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[2,0,3,1]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_45630127:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,10,11,12,13,6,7,0,1,2,3,4,5,14,15]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_45630127:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,10,11,12,13,6,7,0,1,2,3,4,5,14,15]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2017-12-20 00:54:07 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_45630127:
|
|
|
|
; AVX: # %bb.0:
|
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[8,9,10,11,12,13,6,7,0,1,2,3,4,5,14,15]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 4, i32 5, i32 6, i32 3, i32 0, i32 1, i32 2, i32 7>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
2014-08-13 09:25:45 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_37102735(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_37102735:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,6,5,7]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,1,3]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,7,5,6,4]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[3,2,1,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,7,4,5,6]
|
2014-08-13 09:25:45 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_37102735:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[6,7,14,15,2,3,0,1,4,5,14,15,6,7,10,11]
|
2014-08-13 09:25:45 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_37102735:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[6,7,14,15,2,3,0,1,4,5,14,15,6,7,10,11]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_37102735:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[6,7,14,15,2,3,0,1,4,5,14,15,6,7,10,11]
|
|
|
|
; AVX-NEXT: retq
|
2014-08-13 09:25:45 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 3, i32 7, i32 1, i32 0, i32 2, i32 7, i32 3, i32 5>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
2014-06-27 19:23:44 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_08192a3b(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_08192a3b:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_08192a3b:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 8, i32 1, i32 9, i32 2, i32 10, i32 3, i32 11>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0c1d2e3f(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_0c1d2e3f:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm1 = xmm1[2,3,0,1]
|
|
|
|
; SSE-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_0c1d2e3f:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[2,3,0,1]
|
|
|
|
; AVX-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 12, i32 1, i32 13, i32 2, i32 14, i32 3, i32 15>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_4c5d6e7f(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_4c5d6e7f:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-11-12 18:05:18 +08:00
|
|
|
; SSE-NEXT: punpckhwd {{.*#+}} xmm0 = xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_4c5d6e7f:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-11-12 18:05:18 +08:00
|
|
|
; AVX-NEXT: vpunpckhwd {{.*#+}} xmm0 = xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 4, i32 12, i32 5, i32 13, i32 6, i32 14, i32 7, i32 15>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_48596a7b(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_48596a7b:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[2,3,0,1]
|
|
|
|
; SSE-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_48596a7b:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[2,3,0,1]
|
|
|
|
; AVX-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 4, i32 8, i32 5, i32 9, i32 6, i32 10, i32 7, i32 11>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_08196e7f(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_08196e7f:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm1 = xmm1[0,3,2,3]
|
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,3,2,3]
|
|
|
|
; SSE-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_08196e7f:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[0,3,2,3]
|
|
|
|
; AVX-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,3,2,3]
|
|
|
|
; AVX-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%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
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0c1d6879(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_0c1d6879:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm1 = xmm1[2,0,2,3]
|
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,3,2,3]
|
|
|
|
; SSE-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_0c1d6879:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[2,0,2,3]
|
|
|
|
; AVX-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,3,2,3]
|
|
|
|
; AVX-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%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
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_109832ba(<8 x i16> %a, <8 x i16> %b) {
|
2015-02-19 23:21:57 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_109832ba:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-19 23:21:57 +08:00
|
|
|
; SSE-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; SSE-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[2,0,3,1,4,5,6,7]
|
|
|
|
; SSE-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,4,7,5]
|
|
|
|
; SSE-NEXT: retq
|
2015-02-16 09:52:02 +08:00
|
|
|
;
|
2017-12-19 21:16:43 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_109832ba:
|
|
|
|
; AVX1: # %bb.0:
|
|
|
|
; AVX1-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[2,0,3,1,4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,4,7,5]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-SLOW-LABEL: shuffle_v8i16_109832ba:
|
|
|
|
; AVX2-SLOW: # %bb.0:
|
|
|
|
; AVX2-SLOW-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; AVX2-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[2,0,3,1,4,5,6,7]
|
|
|
|
; AVX2-SLOW-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,4,7,5]
|
|
|
|
; AVX2-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-FAST-LABEL: shuffle_v8i16_109832ba:
|
|
|
|
; AVX2-FAST: # %bb.0:
|
|
|
|
; AVX2-FAST-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; AVX2-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5,0,1,6,7,2,3,12,13,8,9,14,15,10,11]
|
|
|
|
; AVX2-FAST-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-SLOW-LABEL: shuffle_v8i16_109832ba:
|
|
|
|
; AVX512VL-SLOW: # %bb.0:
|
|
|
|
; AVX512VL-SLOW-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[2,0,3,1,4,5,6,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,4,7,5]
|
|
|
|
; AVX512VL-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-FAST-LABEL: shuffle_v8i16_109832ba:
|
|
|
|
; AVX512VL-FAST: # %bb.0:
|
|
|
|
; AVX512VL-FAST-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[4,5,0,1,6,7,2,3,12,13,8,9,14,15,10,11]
|
|
|
|
; AVX512VL-FAST-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%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
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_8091a2b3(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_8091a2b3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: punpcklwd {{.*#+}} xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3]
|
|
|
|
; SSE-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_8091a2b3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpunpcklwd {{.*#+}} xmm0 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 8, i32 0, i32 9, i32 1, i32 10, i32 2, i32 11, i32 3>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
define <8 x i16> @shuffle_v8i16_c4d5e6f7(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_c4d5e6f7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-11-12 18:05:18 +08:00
|
|
|
; SSE-NEXT: punpckhwd {{.*#+}} xmm1 = xmm1[4],xmm0[4],xmm1[5],xmm0[5],xmm1[6],xmm0[6],xmm1[7],xmm0[7]
|
|
|
|
; SSE-NEXT: movdqa %xmm1, %xmm0
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_c4d5e6f7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-11-12 18:05:18 +08:00
|
|
|
; AVX-NEXT: vpunpckhwd {{.*#+}} xmm0 = xmm1[4],xmm0[4],xmm1[5],xmm0[5],xmm1[6],xmm0[6],xmm1[7],xmm0[7]
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 12, i32 4, i32 13, i32 5, i32 14, i32 6, i32 15, i32 7>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0213cedf(<8 x i16> %a, <8 x i16> %b) {
|
2015-02-19 23:21:57 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_0213cedf:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-19 23:21:57 +08:00
|
|
|
; SSE-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,2,1,3,4,5,6,7]
|
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm1 = xmm1[2,3,2,3]
|
|
|
|
; SSE-NEXT: pshuflw {{.*#+}} xmm1 = xmm1[0,2,1,3,4,5,6,7]
|
|
|
|
; SSE-NEXT: punpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
|
|
|
; SSE-NEXT: retq
|
2015-02-16 09:52:02 +08:00
|
|
|
;
|
2017-12-19 21:16:43 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_0213cedf:
|
|
|
|
; AVX1: # %bb.0:
|
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,2,1,3,4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[2,3,2,3]
|
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm1 = xmm1[0,2,1,3,4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpunpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-SLOW-LABEL: shuffle_v8i16_0213cedf:
|
|
|
|
; AVX2-SLOW: # %bb.0:
|
|
|
|
; AVX2-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,2,1,3,4,5,6,7]
|
|
|
|
; AVX2-SLOW-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[2,3,2,3]
|
|
|
|
; AVX2-SLOW-NEXT: vpshuflw {{.*#+}} xmm1 = xmm1[0,2,1,3,4,5,6,7]
|
|
|
|
; AVX2-SLOW-NEXT: vpunpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
|
|
|
; AVX2-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-FAST-LABEL: shuffle_v8i16_0213cedf:
|
|
|
|
; AVX2-FAST: # %bb.0:
|
|
|
|
; AVX2-FAST-NEXT: vpshufb {{.*#+}} xmm1 = xmm1[8,9,12,13,10,11,14,15,8,9,10,11,12,13,14,15]
|
|
|
|
; AVX2-FAST-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,2,1,3,4,5,6,7]
|
|
|
|
; AVX2-FAST-NEXT: vpunpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
|
|
|
; AVX2-FAST-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-SLOW-LABEL: shuffle_v8i16_0213cedf:
|
|
|
|
; AVX512VL-SLOW: # %bb.0:
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,2,1,3,4,5,6,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[2,3,2,3]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshuflw {{.*#+}} xmm1 = xmm1[0,2,1,3,4,5,6,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpunpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
|
|
|
; AVX512VL-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-FAST-LABEL: shuffle_v8i16_0213cedf:
|
|
|
|
; AVX512VL-FAST: # %bb.0:
|
|
|
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm1 = xmm1[8,9,12,13,10,11,14,15,8,9,10,11,12,13,14,15]
|
|
|
|
; AVX512VL-FAST-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,2,1,3,4,5,6,7]
|
|
|
|
; AVX512VL-FAST-NEXT: vpunpcklqdq {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
|
|
|
; AVX512VL-FAST-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%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
|
|
|
|
}
|
|
|
|
|
2014-08-07 17:45:02 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_443aXXXX(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_443aXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE2-NEXT: movdqa {{.*#+}} xmm2 = [65535,65535,0,65535,65535,65535,65535,65535]
|
|
|
|
; SSE2-NEXT: pand %xmm2, %xmm0
|
|
|
|
; SSE2-NEXT: pandn %xmm1, %xmm2
|
|
|
|
; SSE2-NEXT: por %xmm0, %xmm2
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm2[2,1,2,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,0,3,2,4,5,6,7]
|
2014-08-07 17:45:02 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_443aXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm1 = zero,zero,zero,zero,zero,zero,xmm1[4,5,u,u,u,u,u,u,u,u]
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,6,7],zero,zero,xmm0[u,u,u,u,u,u,u,u]
|
|
|
|
; SSSE3-NEXT: por %xmm1, %xmm0
|
2014-08-07 17:45:02 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_443aXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2],xmm0[3,4,5,6,7]
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufd {{.*#+}} xmm0 = xmm0[2,1,2,3]
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE41-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,0,3,2,4,5,6,7]
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2017-12-19 21:16:43 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_443aXXXX:
|
|
|
|
; AVX1: # %bb.0:
|
|
|
|
; AVX1-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2],xmm0[3,4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[2,1,2,3]
|
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,3,2,4,5,6,7]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-SLOW-LABEL: shuffle_v8i16_443aXXXX:
|
|
|
|
; AVX2-SLOW: # %bb.0:
|
|
|
|
; AVX2-SLOW-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2],xmm0[3,4,5,6,7]
|
|
|
|
; AVX2-SLOW-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[2,1,2,3]
|
|
|
|
; AVX2-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,3,2,4,5,6,7]
|
|
|
|
; AVX2-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-FAST-LABEL: shuffle_v8i16_443aXXXX:
|
|
|
|
; AVX2-FAST: # %bb.0:
|
|
|
|
; AVX2-FAST-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2],xmm0[3,4,5,6,7]
|
|
|
|
; AVX2-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,6,7,4,5,8,9,10,11,12,13,14,15]
|
|
|
|
; AVX2-FAST-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-SLOW-LABEL: shuffle_v8i16_443aXXXX:
|
|
|
|
; AVX512VL-SLOW: # %bb.0:
|
|
|
|
; AVX512VL-SLOW-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2],xmm0[3,4,5,6,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[2,1,2,3]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,3,2,4,5,6,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-FAST-LABEL: shuffle_v8i16_443aXXXX:
|
|
|
|
; AVX512VL-FAST: # %bb.0:
|
|
|
|
; AVX512VL-FAST-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2],xmm0[3,4,5,6,7]
|
|
|
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[8,9,8,9,6,7,4,5,8,9,10,11,12,13,14,15]
|
|
|
|
; AVX512VL-FAST-NEXT: retq
|
2014-08-07 17:45:02 +08:00
|
|
|
%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
|
|
|
|
}
|
|
|
|
|
2014-06-27 19:23:44 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_032dXXXX(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_032dXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE2-NEXT: movsd {{.*#+}} xmm1 = xmm0[0],xmm1[1]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm1[3,1,2,0]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[2,1,2,3]
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,3,2,1,4,5,6,7]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_032dXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm1 = zero,zero,zero,zero,zero,zero,xmm1[10,11,u,u,u,u,u,u,u,u]
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,6,7,4,5],zero,zero,xmm0[u,u,u,u,u,u,u,u]
|
|
|
|
; SSSE3-NEXT: por %xmm1, %xmm0
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_032dXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1,2,3],xmm1[4,5,6,7]
|
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,6,7,4,5,10,11,0,1,10,11,0,1,2,3]
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2015-02-19 22:08:24 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_032dXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; AVX1-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1,2,3],xmm1[4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,6,7,4,5,10,11,0,1,10,11,0,1,2,3]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-LABEL: shuffle_v8i16_032dXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2OR512VL: # %bb.0:
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-NEXT: vpblendd {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3]
|
|
|
|
; AVX2OR512VL-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,6,7,4,5,10,11,0,1,10,11,0,1,2,3]
|
|
|
|
; AVX2OR512VL-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%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
|
|
|
|
}
|
2014-09-15 17:02:37 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_XXXdXXXX(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_XXXdXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm1[2,2,3,3]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_XXXdXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-09-18 11:29:47 +08:00
|
|
|
; AVX-NEXT: vpermilps {{.*#+}} xmm0 = xmm1[2,2,3,3]
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 13, i32 undef, i32 undef, i32 undef, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_012dXXXX(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_012dXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE2-NEXT: movdqa {{.*#+}} xmm2 = [65535,65535,65535,0,65535,65535,65535,65535]
|
|
|
|
; SSE2-NEXT: pand %xmm2, %xmm0
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm1 = xmm1[2,2,3,3]
|
|
|
|
; SSE2-NEXT: pandn %xmm1, %xmm2
|
|
|
|
; SSE2-NEXT: por %xmm2, %xmm0
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_012dXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm1 = zero,zero,zero,zero,zero,zero,xmm1[10,11,u,u,u,u,u,u,u,u]
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5],zero,zero,xmm0[u,u,u,u,u,u,u,u]
|
|
|
|
; SSSE3-NEXT: por %xmm1, %xmm0
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_012dXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE41-NEXT: pshufd {{.*#+}} xmm1 = xmm1[2,2,3,3]
|
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1,2],xmm1[3],xmm0[4,5,6,7]
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_012dXXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; AVX-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[2,2,3,3]
|
|
|
|
; AVX-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1,2],xmm1[3],xmm0[4,5,6,7]
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 1, i32 2, i32 13, i32 undef, i32 undef, i32 undef, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_XXXXcde3(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_XXXXcde3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE2-NEXT: movdqa {{.*#+}} xmm2 = [65535,65535,65535,65535,65535,65535,65535,0]
|
|
|
|
; SSE2-NEXT: pand %xmm2, %xmm1
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,1,0,1]
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE2-NEXT: pandn %xmm0, %xmm2
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm2
|
|
|
|
; SSE2-NEXT: movdqa %xmm2, %xmm0
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_XXXXcde3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[u,u,u,u,u,u,u,u],zero,zero,zero,zero,zero,zero,xmm0[6,7]
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm1 = xmm1[u,u,u,u,u,u,u,u,8,9,10,11,12,13],zero,zero
|
|
|
|
; SSSE3-NEXT: por %xmm1, %xmm0
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_XXXXcde3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,1,0,1]
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm1[0,1,2,3,4,5,6],xmm0[7]
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2014-10-01 08:41:21 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_XXXXcde3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2014-10-01 08:41:21 +08:00
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,1,0,1]
|
2015-02-19 22:08:24 +08:00
|
|
|
; AVX1-NEXT: vpblendw {{.*#+}} xmm0 = xmm1[0,1,2,3,4,5,6],xmm0[7]
|
2014-10-01 08:41:21 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-LABEL: shuffle_v8i16_XXXXcde3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2OR512VL: # %bb.0:
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-NEXT: vpbroadcastq %xmm0, %xmm0
|
|
|
|
; AVX2OR512VL-NEXT: vpblendw {{.*#+}} xmm0 = xmm1[0,1,2,3,4,5,6],xmm0[7]
|
|
|
|
; AVX2OR512VL-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%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
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_cde3XXXX(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_cde3XXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE2-NEXT: movdqa {{.*#+}} xmm2 = [65535,65535,65535,0,65535,65535,65535,65535]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm1 = xmm1[2,3,0,1]
|
|
|
|
; SSE2-NEXT: pand %xmm2, %xmm1
|
|
|
|
; SSE2-NEXT: pandn %xmm0, %xmm2
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm2
|
|
|
|
; SSE2-NEXT: movdqa %xmm2, %xmm0
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_cde3XXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,xmm0[6,7,u,u,u,u,u,u,u,u]
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm1 = xmm1[8,9,10,11,12,13],zero,zero,xmm1[u,u,u,u,u,u,u,u]
|
|
|
|
; SSSE3-NEXT: por %xmm1, %xmm0
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_cde3XXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE41-NEXT: pshufd {{.*#+}} xmm1 = xmm1[2,3,0,1]
|
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[3],xmm1[4,5,6,7]
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2015-02-19 22:08:24 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_cde3XXXX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; AVX-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[2,3,0,1]
|
|
|
|
; AVX-NEXT: vpblendw {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[3],xmm1[4,5,6,7]
|
|
|
|
; AVX-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 12, i32 13, i32 14, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_012dcde3(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_012dcde3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-19 21:56:49 +08:00
|
|
|
; SSE2-NEXT: movsd {{.*#+}} xmm1 = xmm0[0],xmm1[1]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm1[0,3,2,1]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[3,1,2,0,4,5,6,7]
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[3,1,2,0]
|
2015-02-19 21:56:49 +08:00
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,3,2,1,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,5,7]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,3,2,1]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[1,3,0,2,4,5,6,7]
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_012dcde3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-19 21:56:49 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm1 = zero,zero,zero,zero,zero,zero,xmm1[10,11,8,9,10,11,12,13],zero,zero
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5],zero,zero,zero,zero,zero,zero,zero,zero,xmm0[6,7]
|
|
|
|
; SSSE3-NEXT: por %xmm1, %xmm0
|
2014-07-27 09:15:58 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_012dcde3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-02-16 09:52:02 +08:00
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1,2,3],xmm1[4,5,6,7]
|
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,10,11,8,9,10,11,12,13,6,7]
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2014-10-01 08:41:21 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_012dcde3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2015-02-16 09:52:02 +08:00
|
|
|
; AVX1-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1,2,3],xmm1[4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,10,11,8,9,10,11,12,13,6,7]
|
2014-10-01 08:41:21 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-LABEL: shuffle_v8i16_012dcde3:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2OR512VL: # %bb.0:
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-NEXT: vpblendd {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3]
|
|
|
|
; AVX2OR512VL-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,10,11,8,9,10,11,12,13,6,7]
|
|
|
|
; AVX2OR512VL-NEXT: retq
|
2014-06-27 19:23:44 +08:00
|
|
|
%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
|
|
|
|
}
|
2014-08-05 16:19:21 +08:00
|
|
|
|
2015-02-19 18:46:52 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_0923cde7(<8 x i16> %a, <8 x i16> %b) {
|
|
|
|
; SSE2-LABEL: shuffle_v8i16_0923cde7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-19 18:46:52 +08:00
|
|
|
; SSE2-NEXT: movaps {{.*#+}} xmm2 = [65535,0,65535,65535,0,0,0,65535]
|
|
|
|
; SSE2-NEXT: andps %xmm2, %xmm0
|
|
|
|
; SSE2-NEXT: andnps %xmm1, %xmm2
|
|
|
|
; SSE2-NEXT: orps %xmm2, %xmm0
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_0923cde7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-19 18:46:52 +08:00
|
|
|
; SSSE3-NEXT: movaps {{.*#+}} xmm2 = [65535,0,65535,65535,0,0,0,65535]
|
|
|
|
; SSSE3-NEXT: andps %xmm2, %xmm0
|
|
|
|
; SSSE3-NEXT: andnps %xmm1, %xmm2
|
|
|
|
; SSSE3-NEXT: orps %xmm2, %xmm0
|
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_0923cde7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-02-19 18:46:52 +08:00
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1],xmm0[2,3],xmm1[4,5,6],xmm0[7]
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_0923cde7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-19 18:46:52 +08:00
|
|
|
; AVX-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1],xmm0[2,3],xmm1[4,5,6],xmm0[7]
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 0, i32 9, i32 2, i32 3, i32 12, i32 13, i32 14, i32 7>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
2014-08-05 16:19:21 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_XXX1X579(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_XXX1X579:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm2 = xmm1[0,1,2,0]
|
|
|
|
; SSE2-NEXT: movdqa {{.*#+}} xmm1 = [65535,65535,65535,65535,65535,65535,65535,0]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,1,2,1,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,7,7]
|
|
|
|
; SSE2-NEXT: pand %xmm1, %xmm0
|
|
|
|
; SSE2-NEXT: pandn %xmm2, %xmm1
|
|
|
|
; SSE2-NEXT: por %xmm0, %xmm1
|
|
|
|
; SSE2-NEXT: movdqa %xmm1, %xmm0
|
2014-08-05 16:19:21 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_XXX1X579:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm1 = xmm1[u,u,u,u,u,u],zero,zero,xmm1[u,u],zero,zero,zero,zero,xmm1[2,3]
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[u,u,u,u,u,u,2,3,u,u,10,11,14,15],zero,zero
|
|
|
|
; SSSE3-NEXT: por %xmm1, %xmm0
|
2014-08-05 16:19:21 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_XXX1X579:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE41-NEXT: pshufd {{.*#+}} xmm1 = xmm1[0,1,2,0]
|
|
|
|
; SSE41-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,1,2,1,4,5,6,7]
|
|
|
|
; SSE41-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,7,7]
|
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,6],xmm1[7]
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2015-02-19 22:08:24 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_XXX1X579:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm1 = xmm1[0,1,2,0]
|
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,1,2,1,4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,7,7]
|
|
|
|
; AVX1-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,6],xmm1[7]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
2017-12-19 21:16:43 +08:00
|
|
|
; AVX2-SLOW-LABEL: shuffle_v8i16_XXX1X579:
|
|
|
|
; AVX2-SLOW: # %bb.0:
|
|
|
|
; AVX2-SLOW-NEXT: vpbroadcastd %xmm1, %xmm1
|
|
|
|
; AVX2-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,1,2,1,4,5,6,7]
|
|
|
|
; AVX2-SLOW-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,7,7]
|
|
|
|
; AVX2-SLOW-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,6],xmm1[7]
|
|
|
|
; AVX2-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-FAST-LABEL: shuffle_v8i16_XXX1X579:
|
|
|
|
; AVX2-FAST: # %bb.0:
|
|
|
|
; AVX2-FAST-NEXT: vpbroadcastd %xmm1, %xmm1
|
|
|
|
; AVX2-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,2,3,8,9,10,11,14,15,14,15]
|
|
|
|
; AVX2-FAST-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,6],xmm1[7]
|
|
|
|
; AVX2-FAST-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-SLOW-LABEL: shuffle_v8i16_XXX1X579:
|
|
|
|
; AVX512VL-SLOW: # %bb.0:
|
|
|
|
; AVX512VL-SLOW-NEXT: vpbroadcastd %xmm1, %xmm1
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,1,2,1,4,5,6,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,7,7]
|
|
|
|
; AVX512VL-SLOW-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,6],xmm1[7]
|
|
|
|
; AVX512VL-SLOW-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX512VL-FAST-LABEL: shuffle_v8i16_XXX1X579:
|
|
|
|
; AVX512VL-FAST: # %bb.0:
|
|
|
|
; AVX512VL-FAST-NEXT: vpbroadcastd %xmm1, %xmm1
|
|
|
|
; AVX512VL-FAST-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,2,3,8,9,10,11,14,15,14,15]
|
|
|
|
; AVX512VL-FAST-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,6],xmm1[7]
|
|
|
|
; AVX512VL-FAST-NEXT: retq
|
2014-08-05 16:19:21 +08:00
|
|
|
%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
|
|
|
|
}
|
2014-08-06 02:45:49 +08:00
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_XX4X8acX(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_XX4X8acX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm2 = xmm0[2,2,3,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm1[0,2,2,3,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,1,2,0]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,6,7,4,7]
|
|
|
|
; SSE2-NEXT: movsd {{.*#+}} xmm0 = xmm2[0],xmm0[1]
|
2014-08-06 18:16:36 +08:00
|
|
|
; SSE2-NEXT: retq
|
2014-08-06 02:45:49 +08:00
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_XX4X8acX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[u,u,u,u,8,9,u,u],zero,zero,zero,zero,zero,zero,xmm0[u,u]
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm1 = xmm1[u,u,u,u],zero,zero,xmm1[u,u,0,1,4,5,8,9,u,u]
|
|
|
|
; SSSE3-NEXT: por %xmm1, %xmm0
|
2014-08-06 18:16:36 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_XX4X8acX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm1 = xmm1[0,1,4,5,4,5,6,7,0,1,4,5,8,9,4,5]
|
|
|
|
; SSE41-NEXT: pshufd {{.*#+}} xmm0 = xmm0[2,2,3,3]
|
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1,2,3],xmm1[4,5,6,7]
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
2015-02-19 22:08:24 +08:00
|
|
|
; AVX1-LABEL: shuffle_v8i16_XX4X8acX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2015-02-19 22:08:24 +08:00
|
|
|
; AVX1-NEXT: vpshufb {{.*#+}} xmm1 = xmm1[0,1,4,5,4,5,6,7,0,1,4,5,8,9,4,5]
|
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[2,2,3,3]
|
|
|
|
; AVX1-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0,1,2,3],xmm1[4,5,6,7]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-LABEL: shuffle_v8i16_XX4X8acX:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2OR512VL: # %bb.0:
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-NEXT: vpshufb {{.*#+}} xmm1 = xmm1[0,1,4,5,4,5,6,7,0,1,4,5,8,9,4,5]
|
|
|
|
; AVX2OR512VL-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[2,2,3,3]
|
|
|
|
; AVX2OR512VL-NEXT: vpblendd {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3]
|
|
|
|
; AVX2OR512VL-NEXT: retq
|
2014-08-06 02:45:49 +08:00
|
|
|
%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
|
|
|
|
}
|
2014-09-05 18:36:31 +08:00
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_8zzzzzzz(i16 %i) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_8zzzzzzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-NEXT: movzwl %di, %eax
|
|
|
|
; SSE-NEXT: movd %eax, %xmm0
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_8zzzzzzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: movzwl %di, %eax
|
|
|
|
; AVX-NEXT: vmovd %eax, %xmm0
|
|
|
|
; AVX-NEXT: retq
|
2014-09-05 18:36:31 +08:00
|
|
|
%a = insertelement <8 x i16> undef, i16 %i, i32 0
|
|
|
|
%shuffle = shufflevector <8 x i16> zeroinitializer, <8 x i16> %a, <8 x i32> <i32 8, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_z8zzzzzz(i16 %i) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_z8zzzzzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-06-24 08:03:48 +08:00
|
|
|
; SSE-NEXT: pxor %xmm0, %xmm0
|
2015-04-03 18:02:21 +08:00
|
|
|
; SSE-NEXT: pinsrw $1, %edi, %xmm0
|
2014-11-12 17:17:15 +08:00
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_z8zzzzzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-NEXT: vpxor %xmm0, %xmm0, %xmm0
|
|
|
|
; AVX-NEXT: vpinsrw $1, %edi, %xmm0, %xmm0
|
|
|
|
; AVX-NEXT: retq
|
2014-11-12 17:17:15 +08:00
|
|
|
%a = insertelement <8 x i16> undef, i16 %i, i32 0
|
|
|
|
%shuffle = shufflevector <8 x i16> zeroinitializer, <8 x i16> %a, <8 x i32> <i32 2, i32 8, i32 3, i32 7, i32 6, i32 5, i32 4, i32 3>
|
2014-09-05 18:36:31 +08:00
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_zzzzz8zz(i16 %i) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_zzzzz8zz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-06-24 08:03:48 +08:00
|
|
|
; SSE-NEXT: pxor %xmm0, %xmm0
|
2015-04-03 18:02:21 +08:00
|
|
|
; SSE-NEXT: pinsrw $5, %edi, %xmm0
|
2014-11-12 17:17:15 +08:00
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_zzzzz8zz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-NEXT: vpxor %xmm0, %xmm0, %xmm0
|
|
|
|
; AVX-NEXT: vpinsrw $5, %edi, %xmm0, %xmm0
|
|
|
|
; AVX-NEXT: retq
|
2014-11-12 17:17:15 +08:00
|
|
|
%a = insertelement <8 x i16> undef, i16 %i, i32 0
|
|
|
|
%shuffle = shufflevector <8 x i16> zeroinitializer, <8 x i16> %a, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 8, i32 0, i32 0>
|
2014-09-05 18:36:31 +08:00
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_zuuzuuz8(i16 %i) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_zuuzuuz8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-06-24 08:03:48 +08:00
|
|
|
; SSE-NEXT: pxor %xmm0, %xmm0
|
2015-04-03 18:02:21 +08:00
|
|
|
; SSE-NEXT: pinsrw $7, %edi, %xmm0
|
2014-11-12 17:17:15 +08:00
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_zuuzuuz8:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-NEXT: vpxor %xmm0, %xmm0, %xmm0
|
|
|
|
; AVX-NEXT: vpinsrw $7, %edi, %xmm0, %xmm0
|
|
|
|
; AVX-NEXT: retq
|
2014-11-12 17:17:15 +08:00
|
|
|
%a = insertelement <8 x i16> undef, i16 %i, i32 0
|
|
|
|
%shuffle = shufflevector <8 x i16> zeroinitializer, <8 x i16> %a, <8 x i32> <i32 0, i32 undef, i32 undef, i32 3, i32 undef, i32 undef, i32 6, i32 8>
|
2014-09-05 18:36:31 +08:00
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_zzBzzzzz(i16 %i) {
|
2014-10-01 06:16:23 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_zzBzzzzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-06-24 08:03:48 +08:00
|
|
|
; SSE-NEXT: pxor %xmm0, %xmm0
|
2015-04-03 18:02:21 +08:00
|
|
|
; SSE-NEXT: pinsrw $2, %edi, %xmm0
|
2014-11-12 17:17:15 +08:00
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_zzBzzzzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-NEXT: vpxor %xmm0, %xmm0, %xmm0
|
|
|
|
; AVX-NEXT: vpinsrw $2, %edi, %xmm0, %xmm0
|
|
|
|
; AVX-NEXT: retq
|
2014-11-12 17:17:15 +08:00
|
|
|
%a = insertelement <8 x i16> undef, i16 %i, i32 3
|
|
|
|
%shuffle = shufflevector <8 x i16> zeroinitializer, <8 x i16> %a, <8 x i32> <i32 0, i32 1, i32 11, i32 3, i32 4, i32 5, i32 6, i32 7>
|
2014-09-05 18:36:31 +08:00
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
2014-09-18 12:11:29 +08:00
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_def01234(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_def01234:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm1 = xmm1[10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_def01234:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm0 = xmm1[10,11,12,13,14,15],xmm0[0,1,2,3,4,5,6,7,8,9]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_def01234:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm0 = xmm1[10,11,12,13,14,15],xmm0[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_def01234:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm1[10,11,12,13,14,15],xmm0[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 13, i32 14, i32 15, i32 0, i32 1, i32 2, i32 3, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_ueuu123u(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_ueuu123u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm1 = xmm1[10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_ueuu123u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm0 = xmm1[10,11,12,13,14,15],xmm0[0,1,2,3,4,5,6,7,8,9]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_ueuu123u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm0 = xmm1[10,11,12,13,14,15],xmm0[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_ueuu123u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm1[10,11,12,13,14,15],xmm0[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 14, i32 undef, i32 undef, i32 1, i32 2, i32 3, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_56701234(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_56701234:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: movdqa %xmm0, %xmm1
|
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm1 = xmm1[10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_56701234:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_56701234:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_56701234:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 5, i32 6, i32 7, i32 0, i32 1, i32 2, i32 3, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_u6uu123u(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_u6uu123u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: movdqa %xmm0, %xmm1
|
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm1 = xmm1[10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_u6uu123u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_u6uu123u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_u6uu123u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 6, i32 undef, i32 undef, i32 1, i32 2, i32 3, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_uuuu123u(<8 x i16> %a, <8 x i16> %b) {
|
2014-12-08 01:15:53 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_uuuu123u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-12-08 01:15:53 +08:00
|
|
|
; SSE-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_uuuu123u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; AVX-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9]
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 undef, i32 1, i32 2, i32 3, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_bcdef012(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_bcdef012:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm1 = xmm1[6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_bcdef012:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm0 = xmm1[6,7,8,9,10,11,12,13,14,15],xmm0[0,1,2,3,4,5]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_bcdef012:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm0 = xmm1[6,7,8,9,10,11,12,13,14,15],xmm0[0,1,2,3,4,5]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_bcdef012:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm1[6,7,8,9,10,11,12,13,14,15],xmm0[0,1,2,3,4,5]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 11, i32 12, i32 13, i32 14, i32 15, i32 0, i32 1, i32 2>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_ucdeuu1u(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_ucdeuu1u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm1 = xmm1[6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_ucdeuu1u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm0 = xmm1[6,7,8,9,10,11,12,13,14,15],xmm0[0,1,2,3,4,5]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_ucdeuu1u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm0 = xmm1[6,7,8,9,10,11,12,13,14,15],xmm0[0,1,2,3,4,5]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_ucdeuu1u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm1[6,7,8,9,10,11,12,13,14,15],xmm0[0,1,2,3,4,5]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 12, i32 13, i32 14, i32 undef, i32 undef, i32 1, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_34567012(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_34567012:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: movdqa %xmm0, %xmm1
|
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm1 = xmm1[6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_34567012:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_34567012:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_34567012:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 3, i32 4, i32 5, i32 6, i32 7, i32 0, i32 1, i32 2>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_u456uu1u(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_u456uu1u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: movdqa %xmm0, %xmm1
|
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm1 = xmm1[6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_u456uu1u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_u456uu1u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5]
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_u456uu1u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 4, i32 5, i32 6, i32 undef, i32 undef, i32 1, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_u456uuuu(<8 x i16> %a, <8 x i16> %b) {
|
2014-12-08 01:15:53 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_u456uuuu:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2014-12-08 01:15:53 +08:00
|
|
|
; SSE-NEXT: psrldq {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_u456uuuu:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; AVX-NEXT: vpsrldq {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 4, i32 5, i32 6, i32 undef, i32 undef, i32 undef, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_3456789a(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_3456789a:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm1 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm1[0,1,2,3,4,5]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_3456789a:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm1 = xmm0[6,7,8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_3456789a:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm1 = xmm0[6,7,8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5]
|
|
|
|
; SSE41-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_3456789a:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_u456uu9u(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_u456uu9u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm1 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm1[0,1,2,3,4,5]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_u456uu9u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm1 = xmm0[6,7,8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_u456uu9u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm1 = xmm0[6,7,8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5]
|
|
|
|
; SSE41-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_u456uu9u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm0[6,7,8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 4, i32 5, i32 6, i32 undef, i32 undef, i32 9, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_56789abc(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_56789abc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm1 = zero,zero,zero,zero,zero,zero,xmm1[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_56789abc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm1 = xmm0[10,11,12,13,14,15],xmm1[0,1,2,3,4,5,6,7,8,9]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_56789abc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm1 = xmm0[10,11,12,13,14,15],xmm1[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE41-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_56789abc:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15],xmm1[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_u6uu9abu(<8 x i16> %a, <8 x i16> %b) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_u6uu9abu:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-11-19 18:06:49 +08:00
|
|
|
; SSE2-NEXT: psrldq {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
|
|
|
; SSE2-NEXT: pslldq {{.*#+}} xmm1 = zero,zero,zero,zero,zero,zero,xmm1[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE2-NEXT: por %xmm1, %xmm0
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_u6uu9abu:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: palignr {{.*#+}} xmm1 = xmm0[10,11,12,13,14,15],xmm1[0,1,2,3,4,5,6,7,8,9]
|
2014-09-18 12:11:29 +08:00
|
|
|
; SSSE3-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSSE3-NEXT: retq
|
2014-10-01 05:44:34 +08:00
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_u6uu9abu:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-NEXT: palignr {{.*#+}} xmm1 = xmm0[10,11,12,13,14,15],xmm1[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; SSE41-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_u6uu9abu:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: vpalignr {{.*#+}} xmm0 = xmm0[10,11,12,13,14,15],xmm1[0,1,2,3,4,5,6,7,8,9]
|
|
|
|
; AVX-NEXT: retq
|
2014-09-18 12:11:29 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 undef, i32 6, i32 undef, i32 undef, i32 9, i32 10, i32 11, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
2014-09-19 14:07:49 +08:00
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0uuu1uuu(<8 x i16> %a) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_0uuu1uuu:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,1,0,3]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,5,5,6,7]
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_0uuu1uuu:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,1,0,3]
|
|
|
|
; SSSE3-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,5,5,6,7]
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-LABEL: shuffle_v8i16_0uuu1uuu:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-01-31 22:09:36 +08:00
|
|
|
; SSE41-NEXT: pmovzxwq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_0uuu1uuu:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-01-31 22:09:36 +08:00
|
|
|
; AVX-NEXT: vpmovzxwq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-09-19 14:07:49 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 undef, i32 undef, i32 undef, i32 1, i32 undef, i32 undef, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0zzz1zzz(<8 x i16> %a) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_0zzz1zzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pxor %xmm1, %xmm1
|
|
|
|
; SSE2-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; SSE2-NEXT: punpckldq {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_0zzz1zzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pxor %xmm1, %xmm1
|
|
|
|
; SSSE3-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
|
|
|
; SSSE3-NEXT: punpckldq {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-LABEL: shuffle_v8i16_0zzz1zzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-01-31 22:09:36 +08:00
|
|
|
; SSE41-NEXT: pmovzxwq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_0zzz1zzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-01-31 22:09:36 +08:00
|
|
|
; AVX-NEXT: vpmovzxwq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-09-19 14:07:49 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 9, i32 10, i32 11, i32 1, i32 13, i32 14, i32 15>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0u1u2u3u(<8 x i16> %a) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_0u1u2u3u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0,0,1,1,2,2,3,3]
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_0u1u2u3u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0,0,1,1,2,2,3,3]
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-LABEL: shuffle_v8i16_0u1u2u3u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-01-31 22:09:36 +08:00
|
|
|
; SSE41-NEXT: pmovzxwd {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_0u1u2u3u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-01-31 22:09:36 +08:00
|
|
|
; AVX-NEXT: vpmovzxwd {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-09-19 14:07:49 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 undef, i32 1, i32 undef, i32 2, i32 undef, i32 3, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0z1z2z3z(<8 x i16> %a) {
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_0z1z2z3z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE2-NEXT: pxor %xmm1, %xmm1
|
|
|
|
; SSE2-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-LABEL: shuffle_v8i16_0z1z2z3z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSSE3-NEXT: pxor %xmm1, %xmm1
|
|
|
|
; SSSE3-NEXT: punpcklwd {{.*#+}} xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
2014-10-01 05:44:34 +08:00
|
|
|
; SSE41-LABEL: shuffle_v8i16_0z1z2z3z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-01-31 22:09:36 +08:00
|
|
|
; SSE41-NEXT: pmovzxwd {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero
|
2014-09-19 14:07:49 +08:00
|
|
|
; SSE41-NEXT: retq
|
2014-10-01 06:16:23 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_0z1z2z3z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-01-31 22:09:36 +08:00
|
|
|
; AVX-NEXT: vpmovzxwd {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero
|
2014-10-01 06:16:23 +08:00
|
|
|
; AVX-NEXT: retq
|
2014-09-19 14:07:49 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 9, i32 1, i32 11, i32 2, i32 13, i32 3, i32 15>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
2015-02-04 04:09:18 +08:00
|
|
|
|
2017-09-21 23:11:51 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_01100110(<8 x i16> %a) {
|
|
|
|
; SSE2-LABEL: shuffle_v8i16_01100110:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,1,0,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,1,1,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,5,4]
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_01100110:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,2,3,0,1,0,1,2,3,2,3,0,1]
|
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_01100110:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,2,3,0,1,0,1,2,3,2,3,0,1]
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_01100110:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,2,3,0,1,0,1,2,3,2,3,0,1]
|
|
|
|
; AVX-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>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_01u0u110(<8 x i16> %a) {
|
|
|
|
; SSE2-LABEL: shuffle_v8i16_01u0u110:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,1,0,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,1,2,0,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,5,4]
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_01u0u110:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,0,1,0,1,2,3,2,3,0,1]
|
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_01u0u110:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,0,1,0,1,2,3,2,3,0,1]
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_01u0u110:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5,0,1,0,1,2,3,2,3,0,1]
|
|
|
|
; AVX-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>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_467uu675(<8 x i16> %a) {
|
|
|
|
; SSE2-LABEL: shuffle_v8i16_467uu675:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[2,3,2,3]
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,2,3,3,4,5,6,7]
|
|
|
|
; SSE2-NEXT: pshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,6,7,5]
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_467uu675:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,12,13,14,15,14,15,8,9,12,13,14,15,10,11]
|
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_467uu675:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[8,9,12,13,14,15,14,15,8,9,12,13,14,15,10,11]
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_467uu675:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-09-21 23:11:51 +08:00
|
|
|
; AVX-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[8,9,12,13,14,15,14,15,8,9,12,13,14,15,10,11]
|
|
|
|
; AVX-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>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
2015-02-04 05:58:29 +08:00
|
|
|
;
|
|
|
|
; Shuffle to logical bit shifts
|
|
|
|
;
|
|
|
|
define <8 x i16> @shuffle_v8i16_z0z2z4z6(<8 x i16> %a) {
|
|
|
|
; SSE-LABEL: shuffle_v8i16_z0z2z4z6:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-04 05:58:29 +08:00
|
|
|
; SSE-NEXT: pslld $16, %xmm0
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_z0z2z4z6:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-04 17:18:27 +08:00
|
|
|
; AVX-NEXT: vpslld $16, %xmm0, %xmm0
|
2015-02-04 05:58:29 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32><i32 8, i32 0, i32 8, i32 2, i32 8, i32 4, i32 8, i32 6>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_zzz0zzz4(<8 x i16> %a) {
|
|
|
|
; SSE-LABEL: shuffle_v8i16_zzz0zzz4:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-04 05:58:29 +08:00
|
|
|
; SSE-NEXT: psllq $48, %xmm0
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_zzz0zzz4:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-04 17:18:27 +08:00
|
|
|
; AVX-NEXT: vpsllq $48, %xmm0, %xmm0
|
2015-02-04 05:58:29 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32><i32 8, i32 8, i32 8, i32 0, i32 8, i32 8, i32 8, i32 4>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_zz01zX4X(<8 x i16> %a) {
|
|
|
|
; SSE-LABEL: shuffle_v8i16_zz01zX4X:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-04 05:58:29 +08:00
|
|
|
; SSE-NEXT: psllq $32, %xmm0
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_zz01zX4X:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-04 17:18:27 +08:00
|
|
|
; AVX-NEXT: vpsllq $32, %xmm0, %xmm0
|
2015-02-04 05:58:29 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32><i32 8, i32 8, i32 0, i32 1, i32 8, i32 undef, i32 4, i32 undef>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_z0X2z456(<8 x i16> %a) {
|
|
|
|
; SSE-LABEL: shuffle_v8i16_z0X2z456:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-04 05:58:29 +08:00
|
|
|
; SSE-NEXT: psllq $16, %xmm0
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_z0X2z456:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-04 17:18:27 +08:00
|
|
|
; AVX-NEXT: vpsllq $16, %xmm0, %xmm0
|
2015-02-04 05:58:29 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32><i32 8, i32 0, i32 undef, i32 2, i32 8, i32 4, i32 5, i32 6>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_1z3zXz7z(<8 x i16> %a) {
|
|
|
|
; SSE-LABEL: shuffle_v8i16_1z3zXz7z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-04 05:58:29 +08:00
|
|
|
; SSE-NEXT: psrld $16, %xmm0
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_1z3zXz7z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-04 17:18:27 +08:00
|
|
|
; AVX-NEXT: vpsrld $16, %xmm0, %xmm0
|
2015-02-04 05:58:29 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32><i32 1, i32 8, i32 3, i32 8, i32 undef, i32 8, i32 7, i32 8>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_1X3z567z(<8 x i16> %a) {
|
|
|
|
; SSE-LABEL: shuffle_v8i16_1X3z567z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-04 05:58:29 +08:00
|
|
|
; SSE-NEXT: psrlq $16, %xmm0
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_1X3z567z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-04 17:18:27 +08:00
|
|
|
; AVX-NEXT: vpsrlq $16, %xmm0, %xmm0
|
2015-02-04 05:58:29 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32><i32 1, i32 undef, i32 3, i32 8, i32 5, i32 6, i32 7, i32 8>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_23zz67zz(<8 x i16> %a) {
|
|
|
|
; SSE-LABEL: shuffle_v8i16_23zz67zz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-04 05:58:29 +08:00
|
|
|
; SSE-NEXT: psrlq $32, %xmm0
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_23zz67zz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-04 17:18:27 +08:00
|
|
|
; AVX-NEXT: vpsrlq $32, %xmm0, %xmm0
|
2015-02-04 05:58:29 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32><i32 2, i32 3, i32 8, i32 8, i32 6, i32 7, i32 8, i32 8>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_3zXXXzzz(<8 x i16> %a) {
|
|
|
|
; SSE-LABEL: shuffle_v8i16_3zXXXzzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-04 05:58:29 +08:00
|
|
|
; SSE-NEXT: psrlq $48, %xmm0
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_3zXXXzzz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-04 17:18:27 +08:00
|
|
|
; AVX-NEXT: vpsrlq $48, %xmm0, %xmm0
|
2015-02-04 05:58:29 +08:00
|
|
|
; AVX-NEXT: retq
|
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32><i32 3, i32 8, i32 undef, i32 undef, i32 undef, i32 8, i32 8, i32 8>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
2015-02-04 04:09:18 +08:00
|
|
|
define <8 x i16> @shuffle_v8i16_01u3zzuz(<8 x i16> %a) {
|
|
|
|
; SSE-LABEL: shuffle_v8i16_01u3zzuz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-04 04:09:18 +08:00
|
|
|
; SSE-NEXT: movq {{.*#+}} xmm0 = xmm0[0],zero
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_01u3zzuz:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-04 04:09:18 +08:00
|
|
|
; AVX-NEXT: vmovq {{.*#+}} xmm0 = xmm0[0],zero
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 1, i32 undef, i32 3, i32 8, i32 8, i32 undef, i32 8>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
2015-02-04 17:15:46 +08:00
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0z234567(<8 x i16> %a) {
|
|
|
|
; SSE2-LABEL: shuffle_v8i16_0z234567:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-04 17:15:46 +08:00
|
|
|
; SSE2-NEXT: andps {{.*}}(%rip), %xmm0
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_0z234567:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-04 17:15:46 +08:00
|
|
|
; SSSE3-NEXT: andps {{.*}}(%rip), %xmm0
|
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_0z234567:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-02-04 17:15:46 +08:00
|
|
|
; SSE41-NEXT: pxor %xmm1, %xmm1
|
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1],xmm0[2,3,4,5,6,7]
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_0z234567:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
|
|
|
; AVX-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1],xmm0[2,3,4,5,6,7]
|
|
|
|
; AVX-NEXT: retq
|
2015-02-04 17:15:46 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 9, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0zzzz5z7(<8 x i16> %a) {
|
2015-02-15 20:18:12 +08:00
|
|
|
; SSE2-LABEL: shuffle_v8i16_0zzzz5z7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-15 20:18:12 +08:00
|
|
|
; SSE2-NEXT: andps {{.*}}(%rip), %xmm0
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_0zzzz5z7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-15 20:18:12 +08:00
|
|
|
; SSSE3-NEXT: andps {{.*}}(%rip), %xmm0
|
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_0zzzz5z7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-02-15 20:18:12 +08:00
|
|
|
; SSE41-NEXT: pxor %xmm1, %xmm1
|
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1,2,3,4],xmm0[5],xmm1[6],xmm0[7]
|
|
|
|
; SSE41-NEXT: retq
|
2015-02-04 17:15:46 +08:00
|
|
|
;
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_0zzzz5z7:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
|
|
|
; AVX-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1,2,3,4],xmm0[5],xmm1[6],xmm0[7]
|
|
|
|
; AVX-NEXT: retq
|
2015-02-04 17:15:46 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 8, i32 8, i32 8, i32 8, i32 5, i32 8, i32 7>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_0123456z(<8 x i16> %a) {
|
|
|
|
; SSE2-LABEL: shuffle_v8i16_0123456z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-02-04 17:15:46 +08:00
|
|
|
; SSE2-NEXT: andps {{.*}}(%rip), %xmm0
|
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: shuffle_v8i16_0123456z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-02-04 17:15:46 +08:00
|
|
|
; SSSE3-NEXT: andps {{.*}}(%rip), %xmm0
|
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: shuffle_v8i16_0123456z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-02-04 17:15:46 +08:00
|
|
|
; SSE41-NEXT: pxor %xmm1, %xmm1
|
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1],xmm0[2,3,4,5,6],xmm1[7]
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-LABEL: shuffle_v8i16_0123456z:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2017-01-06 23:56:52 +08:00
|
|
|
; AVX-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
|
|
|
; AVX-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1],xmm0[2,3,4,5,6],xmm1[7]
|
|
|
|
; AVX-NEXT: retq
|
2015-02-04 17:15:46 +08:00
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 0, i32 9, i32 2, i32 3, i32 4, i32 5, i32 6, i32 15>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
2015-02-18 15:13:48 +08:00
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_fu3ucc5u(<8 x i16> %a, <8 x i16> %b) {
|
2015-02-19 23:21:57 +08:00
|
|
|
; SSE-LABEL: shuffle_v8i16_fu3ucc5u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-19 23:21:57 +08:00
|
|
|
; SSE-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
|
|
|
|
; SSE-NEXT: pshufhw {{.*#+}} xmm1 = xmm1[0,1,2,3,7,5,4,4]
|
|
|
|
; SSE-NEXT: punpckhdq {{.*#+}} xmm1 = xmm1[2],xmm0[2],xmm1[3],xmm0[3]
|
|
|
|
; SSE-NEXT: movdqa %xmm1, %xmm0
|
|
|
|
; SSE-NEXT: retq
|
2015-02-18 15:13:48 +08:00
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_fu3ucc5u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-19 23:21:57 +08:00
|
|
|
; AVX-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
|
|
|
|
; AVX-NEXT: vpshufhw {{.*#+}} xmm1 = xmm1[0,1,2,3,7,5,4,4]
|
|
|
|
; AVX-NEXT: vpunpckhdq {{.*#+}} xmm0 = xmm1[2],xmm0[2],xmm1[3],xmm0[3]
|
2015-02-18 15:13:48 +08:00
|
|
|
; AVX-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>
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
2015-02-18 15:45:43 +08:00
|
|
|
|
|
|
|
define <8 x i16> @shuffle_v8i16_8012345u(<8 x i16> %a) {
|
|
|
|
; SSE-LABEL: shuffle_v8i16_8012345u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2015-02-18 15:45:43 +08:00
|
|
|
; SSE-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
|
|
|
|
; SSE-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX-LABEL: shuffle_v8i16_8012345u:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX: # %bb.0:
|
2015-02-18 15:45:43 +08:00
|
|
|
; AVX-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
|
|
|
|
; AVX-NEXT: retq
|
|
|
|
%shuffle = shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> <i32 8, i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 undef>
|
|
|
|
|
|
|
|
ret <8 x i16> %shuffle
|
|
|
|
}
|
2015-08-21 04:59:41 +08:00
|
|
|
|
2016-04-08 01:23:55 +08:00
|
|
|
define <8 x i16> @mask_v8i16_012345ef(<8 x i16> %a, <8 x i16> %b) {
|
|
|
|
; SSE2-LABEL: mask_v8i16_012345ef:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2016-04-12 05:10:33 +08:00
|
|
|
; SSE2-NEXT: shufps {{.*#+}} xmm0 = xmm0[3,0],xmm1[2,0]
|
|
|
|
; SSE2-NEXT: shufps {{.*#+}} xmm1 = xmm1[0,1],xmm0[2,0]
|
|
|
|
; SSE2-NEXT: movaps %xmm1, %xmm0
|
2016-04-08 01:23:55 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: mask_v8i16_012345ef:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2016-04-12 05:10:33 +08:00
|
|
|
; SSSE3-NEXT: shufps {{.*#+}} xmm0 = xmm0[3,0],xmm1[2,0]
|
|
|
|
; SSSE3-NEXT: shufps {{.*#+}} xmm1 = xmm1[0,1],xmm0[2,0]
|
|
|
|
; SSSE3-NEXT: movaps %xmm1, %xmm0
|
2016-04-08 01:23:55 +08:00
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: mask_v8i16_012345ef:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2016-04-12 05:10:33 +08:00
|
|
|
; SSE41-NEXT: pblendw {{.*#+}} xmm0 = xmm1[0,1,2,3,4,5],xmm0[6,7]
|
2016-04-08 01:23:55 +08:00
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: mask_v8i16_012345ef:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2016-04-12 05:10:33 +08:00
|
|
|
; AVX1-NEXT: vpblendw {{.*#+}} xmm0 = xmm1[0,1,2,3,4,5],xmm0[6,7]
|
2016-04-08 01:23:55 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-LABEL: mask_v8i16_012345ef:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2OR512VL: # %bb.0:
|
2017-09-04 01:52:23 +08:00
|
|
|
; AVX2OR512VL-NEXT: vblendps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[3]
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-NEXT: retq
|
2016-04-08 01:23:55 +08:00
|
|
|
%1 = bitcast <8 x i16> %a to <2 x i64>
|
|
|
|
%2 = bitcast <8 x i16> %b to <2 x i64>
|
|
|
|
%3 = and <2 x i64> %1, <i64 0, i64 -4294967296>
|
|
|
|
%4 = and <2 x i64> %2, <i64 -1, i64 4294967295>
|
|
|
|
%5 = or <2 x i64> %4, %3
|
|
|
|
%6 = bitcast <2 x i64> %5 to <8 x i16>
|
|
|
|
ret <8 x i16> %6
|
|
|
|
}
|
|
|
|
|
2015-08-21 04:59:41 +08:00
|
|
|
define <8 x i16> @insert_dup_mem_v8i16_i32(i32* %ptr) {
|
2016-08-25 02:07:53 +08:00
|
|
|
; SSE-LABEL: insert_dup_mem_v8i16_i32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2016-08-25 02:07:53 +08:00
|
|
|
; SSE-NEXT: movd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
|
|
|
; SSE-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
|
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
|
|
|
; SSE-NEXT: retq
|
2015-08-21 04:59:41 +08:00
|
|
|
;
|
|
|
|
; AVX1-LABEL: insert_dup_mem_v8i16_i32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2015-08-21 04:59:41 +08:00
|
|
|
; AVX1-NEXT: vmovd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
2016-08-25 02:07:53 +08:00
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
2015-08-21 04:59:41 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-LABEL: insert_dup_mem_v8i16_i32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2OR512VL: # %bb.0:
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-NEXT: vpbroadcastw (%rdi), %xmm0
|
|
|
|
; AVX2OR512VL-NEXT: retq
|
2015-08-21 04:59:41 +08:00
|
|
|
%tmp = load i32, i32* %ptr, align 4
|
|
|
|
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
|
|
|
%tmp2 = bitcast <4 x i32> %tmp1 to <8 x i16>
|
|
|
|
%tmp3 = shufflevector <8 x i16> %tmp2, <8 x i16> undef, <8 x i32> zeroinitializer
|
|
|
|
ret <8 x i16> %tmp3
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @insert_dup_mem_v8i16_sext_i16(i16* %ptr) {
|
|
|
|
; SSE2-LABEL: insert_dup_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-08-21 04:59:41 +08:00
|
|
|
; SSE2-NEXT: movswl (%rdi), %eax
|
|
|
|
; SSE2-NEXT: movd %eax, %xmm0
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
|
2016-01-22 06:07:41 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
2015-08-21 04:59:41 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: insert_dup_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-08-21 04:59:41 +08:00
|
|
|
; SSSE3-NEXT: movswl (%rdi), %eax
|
|
|
|
; SSSE3-NEXT: movd %eax, %xmm0
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1]
|
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: insert_dup_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-08-21 04:59:41 +08:00
|
|
|
; SSE41-NEXT: movswl (%rdi), %eax
|
|
|
|
; SSE41-NEXT: movd %eax, %xmm0
|
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1]
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX1-LABEL: insert_dup_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2015-08-21 04:59:41 +08:00
|
|
|
; AVX1-NEXT: movswl (%rdi), %eax
|
|
|
|
; AVX1-NEXT: vmovd %eax, %xmm0
|
|
|
|
; AVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: insert_dup_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0:
|
2015-08-21 04:59:41 +08:00
|
|
|
; AVX2-NEXT: movswl (%rdi), %eax
|
|
|
|
; AVX2-NEXT: vmovd %eax, %xmm0
|
|
|
|
; AVX2-NEXT: vpbroadcastw %xmm0, %xmm0
|
|
|
|
; AVX2-NEXT: retq
|
2016-10-01 14:01:18 +08:00
|
|
|
;
|
|
|
|
; AVX512VL-LABEL: insert_dup_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512VL: # %bb.0:
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX512VL-NEXT: movswl (%rdi), %eax
|
2017-08-10 01:21:01 +08:00
|
|
|
; AVX512VL-NEXT: vpbroadcastw %eax, %xmm0
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX512VL-NEXT: retq
|
2015-08-21 04:59:41 +08:00
|
|
|
%tmp = load i16, i16* %ptr, align 2
|
|
|
|
%tmp1 = sext i16 %tmp to i32
|
|
|
|
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
|
|
|
%tmp3 = bitcast <4 x i32> %tmp2 to <8 x i16>
|
|
|
|
%tmp4 = shufflevector <8 x i16> %tmp3, <8 x i16> undef, <8 x i32> zeroinitializer
|
|
|
|
ret <8 x i16> %tmp4
|
|
|
|
}
|
2015-11-07 07:16:38 +08:00
|
|
|
|
|
|
|
define <8 x i16> @insert_dup_elt1_mem_v8i16_i32(i32* %ptr) {
|
2016-08-25 02:07:53 +08:00
|
|
|
; SSE-LABEL: insert_dup_elt1_mem_v8i16_i32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE: # %bb.0:
|
2016-08-25 02:07:53 +08:00
|
|
|
; SSE-NEXT: movd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
|
|
|
; SSE-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[1,1,1,1,4,5,6,7]
|
|
|
|
; SSE-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
|
|
|
; SSE-NEXT: retq
|
2015-11-07 07:16:38 +08:00
|
|
|
;
|
2015-11-07 07:16:43 +08:00
|
|
|
; AVX1-LABEL: insert_dup_elt1_mem_v8i16_i32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2015-11-07 07:16:43 +08:00
|
|
|
; AVX1-NEXT: vmovd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
2016-08-25 02:07:53 +08:00
|
|
|
; AVX1-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[1,1,1,1,4,5,6,7]
|
|
|
|
; AVX1-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
2015-11-07 07:16:43 +08:00
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-LABEL: insert_dup_elt1_mem_v8i16_i32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2OR512VL: # %bb.0:
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-NEXT: vpbroadcastw 2(%rdi), %xmm0
|
|
|
|
; AVX2OR512VL-NEXT: retq
|
2015-11-07 07:16:38 +08:00
|
|
|
%tmp = load i32, i32* %ptr, align 4
|
|
|
|
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 0
|
|
|
|
%tmp2 = bitcast <4 x i32> %tmp1 to <8 x i16>
|
|
|
|
%tmp3 = shufflevector <8 x i16> %tmp2, <8 x i16> undef, <8 x i32> <i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1>
|
|
|
|
ret <8 x i16> %tmp3
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @insert_dup_elt3_mem_v8i16_i32(i32* %ptr) {
|
|
|
|
; SSE2-LABEL: insert_dup_elt3_mem_v8i16_i32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSE2-NEXT: movd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
2016-01-22 06:07:41 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,0,1,1]
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[3,3,3,3,4,5,6,7]
|
2016-01-22 06:07:41 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: insert_dup_elt3_mem_v8i16_i32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSSE3-NEXT: movd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3]
|
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: insert_dup_elt3_mem_v8i16_i32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSE41-NEXT: movd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3]
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
2015-11-07 07:16:43 +08:00
|
|
|
; AVX1-LABEL: insert_dup_elt3_mem_v8i16_i32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2015-11-07 07:16:43 +08:00
|
|
|
; AVX1-NEXT: vmovd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
|
|
|
; AVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-LABEL: insert_dup_elt3_mem_v8i16_i32:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2OR512VL: # %bb.0:
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX2OR512VL-NEXT: vpbroadcastw 2(%rdi), %xmm0
|
|
|
|
; AVX2OR512VL-NEXT: retq
|
2015-11-07 07:16:38 +08:00
|
|
|
%tmp = load i32, i32* %ptr, align 4
|
|
|
|
%tmp1 = insertelement <4 x i32> zeroinitializer, i32 %tmp, i32 1
|
|
|
|
%tmp2 = bitcast <4 x i32> %tmp1 to <8 x i16>
|
|
|
|
%tmp3 = shufflevector <8 x i16> %tmp2, <8 x i16> undef, <8 x i32> <i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3>
|
|
|
|
ret <8 x i16> %tmp3
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @insert_dup_elt1_mem_v8i16_sext_i16(i16* %ptr) {
|
|
|
|
; SSE2-LABEL: insert_dup_elt1_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSE2-NEXT: movswl (%rdi), %eax
|
|
|
|
; SSE2-NEXT: movd %eax, %xmm0
|
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[1,1,1,1,4,5,6,7]
|
2016-01-22 06:07:41 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: insert_dup_elt1_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSSE3-NEXT: movswl (%rdi), %eax
|
|
|
|
; SSSE3-NEXT: movd %eax, %xmm0
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3]
|
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: insert_dup_elt1_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSE41-NEXT: movswl (%rdi), %eax
|
|
|
|
; SSE41-NEXT: movd %eax, %xmm0
|
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3]
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
2015-11-07 07:16:43 +08:00
|
|
|
; AVX1-LABEL: insert_dup_elt1_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2015-11-07 07:16:43 +08:00
|
|
|
; AVX1-NEXT: movswl (%rdi), %eax
|
|
|
|
; AVX1-NEXT: vmovd %eax, %xmm0
|
|
|
|
; AVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: insert_dup_elt1_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0:
|
2015-11-07 07:16:43 +08:00
|
|
|
; AVX2-NEXT: movswl (%rdi), %eax
|
|
|
|
; AVX2-NEXT: shrl $16, %eax
|
|
|
|
; AVX2-NEXT: vmovd %eax, %xmm0
|
|
|
|
; AVX2-NEXT: vpbroadcastw %xmm0, %xmm0
|
|
|
|
; AVX2-NEXT: retq
|
2016-10-01 14:01:18 +08:00
|
|
|
;
|
|
|
|
; AVX512VL-LABEL: insert_dup_elt1_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512VL: # %bb.0:
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX512VL-NEXT: movswl (%rdi), %eax
|
|
|
|
; AVX512VL-NEXT: shrl $16, %eax
|
2017-08-10 01:21:01 +08:00
|
|
|
; AVX512VL-NEXT: vpbroadcastw %eax, %xmm0
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX512VL-NEXT: retq
|
2015-11-07 07:16:38 +08:00
|
|
|
%tmp = load i16, i16* %ptr, align 2
|
|
|
|
%tmp1 = sext i16 %tmp to i32
|
|
|
|
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 0
|
|
|
|
%tmp3 = bitcast <4 x i32> %tmp2 to <8 x i16>
|
|
|
|
%tmp4 = shufflevector <8 x i16> %tmp3, <8 x i16> undef, <8 x i32> <i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1>
|
|
|
|
ret <8 x i16> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @insert_dup_elt3_mem_v8i16_sext_i16(i16* %ptr) {
|
|
|
|
; SSE2-LABEL: insert_dup_elt3_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE2: # %bb.0:
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSE2-NEXT: movswl (%rdi), %eax
|
|
|
|
; SSE2-NEXT: movd %eax, %xmm0
|
2016-01-22 06:07:41 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,0,1,1]
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSE2-NEXT: pshuflw {{.*#+}} xmm0 = xmm0[3,3,3,3,4,5,6,7]
|
2016-01-22 06:07:41 +08:00
|
|
|
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSE2-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSSE3-LABEL: insert_dup_elt3_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSSE3: # %bb.0:
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSSE3-NEXT: movswl (%rdi), %eax
|
|
|
|
; SSSE3-NEXT: movd %eax, %xmm0
|
|
|
|
; SSSE3-NEXT: pshufb {{.*#+}} xmm0 = xmm0[2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3]
|
|
|
|
; SSSE3-NEXT: retq
|
|
|
|
;
|
|
|
|
; SSE41-LABEL: insert_dup_elt3_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SSE41: # %bb.0:
|
2015-11-07 07:16:38 +08:00
|
|
|
; SSE41-NEXT: movswl (%rdi), %eax
|
|
|
|
; SSE41-NEXT: movd %eax, %xmm0
|
|
|
|
; SSE41-NEXT: pshufb {{.*#+}} xmm0 = xmm0[2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3]
|
|
|
|
; SSE41-NEXT: retq
|
|
|
|
;
|
2015-11-07 07:16:43 +08:00
|
|
|
; AVX1-LABEL: insert_dup_elt3_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX1: # %bb.0:
|
2015-11-07 07:16:43 +08:00
|
|
|
; AVX1-NEXT: movswl (%rdi), %eax
|
|
|
|
; AVX1-NEXT: vmovd %eax, %xmm0
|
|
|
|
; AVX1-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3]
|
|
|
|
; AVX1-NEXT: retq
|
|
|
|
;
|
|
|
|
; AVX2-LABEL: insert_dup_elt3_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX2: # %bb.0:
|
2015-11-07 07:16:43 +08:00
|
|
|
; AVX2-NEXT: movswl (%rdi), %eax
|
|
|
|
; AVX2-NEXT: shrl $16, %eax
|
|
|
|
; AVX2-NEXT: vmovd %eax, %xmm0
|
|
|
|
; AVX2-NEXT: vpbroadcastw %xmm0, %xmm0
|
|
|
|
; AVX2-NEXT: retq
|
2016-10-01 14:01:18 +08:00
|
|
|
;
|
|
|
|
; AVX512VL-LABEL: insert_dup_elt3_mem_v8i16_sext_i16:
|
2017-12-05 01:18:51 +08:00
|
|
|
; AVX512VL: # %bb.0:
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX512VL-NEXT: movswl (%rdi), %eax
|
|
|
|
; AVX512VL-NEXT: shrl $16, %eax
|
2017-08-10 01:21:01 +08:00
|
|
|
; AVX512VL-NEXT: vpbroadcastw %eax, %xmm0
|
2016-10-01 14:01:18 +08:00
|
|
|
; AVX512VL-NEXT: retq
|
2015-11-07 07:16:38 +08:00
|
|
|
%tmp = load i16, i16* %ptr, align 2
|
|
|
|
%tmp1 = sext i16 %tmp to i32
|
|
|
|
%tmp2 = insertelement <4 x i32> zeroinitializer, i32 %tmp1, i32 1
|
|
|
|
%tmp3 = bitcast <4 x i32> %tmp2 to <8 x i16>
|
|
|
|
%tmp4 = shufflevector <8 x i16> %tmp3, <8 x i16> undef, <8 x i32> <i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3>
|
|
|
|
ret <8 x i16> %tmp4
|
|
|
|
}
|