Skip to content

Commit

Permalink
LoongArch: Fix testcase for vector calling convention.
Browse files Browse the repository at this point in the history
vect-abi-pass-1.c checks instruction with $vr0 as parameter instead of $vr8,
which is wrong compares to expected checking sequence.

gcc/testsuite/ChangeLog:

	* gcc.target/loongarch/vector/lsx/vect-abi-pass-1.c: Change vr0
	  to vr8 in checking sequence.
  • Loading branch information
ChenghuiPan committed May 15, 2024
1 parent 8ccd65c commit 2e5bf06
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -mvecarg -mabi=lp64d -mdouble-float" } */
/* { dg-final { scan-assembler "vpickve2gr\\.du\t\\\$r4,\\\$vr0,0" } } */
/* { dg-final { scan-assembler "vpickve2gr\\.du\t\\\$r5,\\\$vr0,1" } } */
/* { dg-final { scan-assembler "vpickve2gr\\.du\t\\\$r4,\\\$vr8,0" } } */
/* { dg-final { scan-assembler "vpickve2gr\\.du\t\\\$r5,\\\$vr8,1" } } */

#include <lsxintrin.h>

Expand Down

0 comments on commit 2e5bf06

Please sign in to comment.