1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc --mtriple=loongarch64 --mattr=+lsx %s -o - | FileCheck %s
5 define <16 x i8> @shufflevector_vshuf4i_v16i8(<16 x i8> %a, <16 x i8> %b) {
6 ; CHECK-LABEL: shufflevector_vshuf4i_v16i8:
8 ; CHECK-NEXT: vshuf4i.b $vr0, $vr0, 27
10 %c = shufflevector <16 x i8> %a, <16 x i8> %b, <16 x i32> <i32 3, i32 2, i32 1, i32 0, i32 7, i32 6, i32 5, i32 4, i32 11, i32 10, i32 9, i32 8, i32 15, i32 14, i32 13, i32 12>
15 define <8 x i16> @shufflevector_vshuf4i_v8i4(<8 x i16> %a, <8 x i16> %b) {
16 ; CHECK-LABEL: shufflevector_vshuf4i_v8i4:
18 ; CHECK-NEXT: vshuf4i.h $vr0, $vr0, 27
20 %c = shufflevector <8 x i16> %a, <8 x i16> %b, <8 x i32> <i32 3, i32 2, i32 1, i32 0, i32 7, i32 6, i32 5, i32 4>
25 define <4 x i32> @shufflevector_vshuf4i_v4i32(<4 x i32> %a, <4 x i32> %b) {
26 ; CHECK-LABEL: shufflevector_vshuf4i_v4i32:
28 ; CHECK-NEXT: vshuf4i.w $vr0, $vr0, 27
30 %c = shufflevector <4 x i32> %a, <4 x i32> %b, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
35 define <4 x float> @shufflevector_vshuf4i_v4f32(<4 x float> %a, <4 x float> %b) {
36 ; CHECK-LABEL: shufflevector_vshuf4i_v4f32:
38 ; CHECK-NEXT: vshuf4i.w $vr0, $vr0, 27
40 %c = shufflevector <4 x float> %a, <4 x float> %b, <4 x i32> <i32 3, i32 2, i32 1, i32 0>