Skip to content

Commit cd6cafd

Browse files
authored
[LoongArch] Modify the test data of some SX/ASX tests (#86)
* [LoongArch] Modify the test data of some SX/ASX tests Modify the arguments and results of the following instructions's builtins to keep the test result on the LA464 and LA664 consistent. - [X]VSHUF.B and [X]VSHUF.{H/W/D} - XVPERIM.Q
1 parent e597556 commit cd6cafd

File tree

3 files changed

+108
-213
lines changed

3 files changed

+108
-213
lines changed

SingleSource/UnitTests/Vector/LASX/lasx-xvpermi_q.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ main ()
2929
0x00ff00ff00ff00ff, 0x00ff00ff00ff00ff};
3030
v4u64_op1 = (v4u64){0xffff0000ffff0000, 0xffffffffffffffff,
3131
0xffff0000ffff0000, 0xffffffffffffffff};
32-
__m256i_result = (__m256i){0x0000000000000000, 0x0000000000000000,
33-
0x0000000000000000, 0x0000000000000000};
32+
__m256i_result = (__m256i){0x00ff00ff00ff00ff, 0x00ff00ff00ff00ff,
33+
0xffff0000ffff0000, 0xffffffffffffffff};
3434
__m256i_out = __lasx_xvpermi_q((__m256)v4u64_op0, (__m256)v4u64_op1, 0xca);
3535
check_lasx_out(&__m256i_result, &__m256i_out, sizeof(__m256i_out), __FILE__, __LINE__);
3636

3737
v4u64_op0 = (v4u64){0x000000000019001c, 0x0000000000000000,
3838
0x000000000019001c, 0x0000000000000000};
3939
v4u64_op1 = (v4u64){0x00000000000001fe, 0x0000000000000000,
4040
0x00000000000001fe, 0x0000000000000000};
41-
__m256i_result = (__m256i){0x0000000000000000, 0x0000000000000000,
42-
0x0000000000000000, 0x0000000000000000};
41+
__m256i_result = (__m256i){0x00000000000001fe, 0x0000000000000000,
42+
0x000000000019001c, 0x0000000000000000};
4343
__m256i_out = __lasx_xvpermi_q((__m256)v4u64_op0, (__m256)v4u64_op1, 0xb9);
4444
check_lasx_out(&__m256i_result, &__m256i_out, sizeof(__m256i_out), __FILE__, __LINE__);
4545

0 commit comments

Comments
 (0)