]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Refactor the testcases for bswap16-0
authorPan Li <pan2.li@intel.com>
Wed, 4 Dec 2024 02:08:12 +0000 (10:08 +0800)
committerPan Li <pan2.li@intel.com>
Fri, 6 Dec 2024 00:42:27 +0000 (08:42 +0800)
This patch would like to refactor the testcases of bswap16-0
after sorts of optimization option passing to testcase.  To
fits the big lmul like m8 for asm dump check.

The below test suites are passed for this patch.
* The rv64gcv fully regression test.

It is test only patch and obvious up to a point, will commit it
directly if no comments in next 48H.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/unop/bswap16-0.c: Update
the vector register RE to cover v10 - v31.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/testsuite/gcc.target/riscv/rvv/autovec/unop/bswap16-0.c

index 605b3565b6bda28d06cfa3a4be38ea03ae908d4a..4b55c001a31d7b115ee975cb30ad69447f80c7c0 100644 (file)
@@ -10,7 +10,7 @@
 **   ...
 **   vsrl\.vi\s+v[0-9]+,\s*v[0-9],\s*8+
 **   vsll\.vi\s+v[0-9]+,\s*v[0-9],\s*8+
-**   vor\.vv\s+v[0-9]+,\s*v[0-9],\s*v[0-9]+
+**   vor\.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+
 **   ...
 */
 TEST_UNARY_CALL (uint16_t, __builtin_bswap16)