Skip to content

Commit eb52edb

Browse files
authored
[LoongArch] Update the immediate argument of __lasx_xvpermi_q (#107)
As the following PR has been reverted, the immediate argument needs to be modified to keep the test result on LA464 and LA664 consistent: llvm/llvm-project#82984
1 parent 37e8601 commit eb52edb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ main ()
3131
0xffff0000ffff0000, 0xffffffffffffffff};
3232
__m256i_result = (__m256i){0x00ff00ff00ff00ff, 0x00ff00ff00ff00ff,
3333
0xffff0000ffff0000, 0xffffffffffffffff};
34-
__m256i_out = __lasx_xvpermi_q((__m256)v4u64_op0, (__m256)v4u64_op1, 0xca);
34+
__m256i_out = __lasx_xvpermi_q((__m256)v4u64_op0, (__m256)v4u64_op1, 0x2);
3535
check_lasx_out(&__m256i_result, &__m256i_out, sizeof(__m256i_out), __FILE__, __LINE__);
3636

3737
v4u64_op0 = (v4u64){0x000000000019001c, 0x0000000000000000,
@@ -40,7 +40,7 @@ main ()
4040
0x00000000000001fe, 0x0000000000000000};
4141
__m256i_result = (__m256i){0x00000000000001fe, 0x0000000000000000,
4242
0x000000000019001c, 0x0000000000000000};
43-
__m256i_out = __lasx_xvpermi_q((__m256)v4u64_op0, (__m256)v4u64_op1, 0xb9);
43+
__m256i_out = __lasx_xvpermi_q((__m256)v4u64_op0, (__m256)v4u64_op1, 0x31);
4444
check_lasx_out(&__m256i_result, &__m256i_out, sizeof(__m256i_out), __FILE__, __LINE__);
4545

4646
return 0;

0 commit comments

Comments
 (0)