]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Removed misleading comments in testcases
authorLehua Ding <lehua.ding@rivai.ai>
Mon, 18 Sep 2023 12:24:26 +0000 (20:24 +0800)
committerLehua Ding <lehua.ding@rivai.ai>
Mon, 18 Sep 2023 12:32:36 +0000 (20:32 +0800)
This patch removed the misleading comments in testcases since we
support fold min(int, poly) to constant by this patch
(https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629651.html).
Thereby the csrr will not appear inside the assembly code, even if there
is no support for some VLS vector patterns.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/vls/div-1.c: Removed comments.
* gcc.target/riscv/rvv/autovec/vls/shift-3.c: Ditto.

gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/div-1.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/shift-3.c

index 40224c69458e4049766195b59f67baff4a3ec0da..e36fa9decfda47c06b8e3d34785fc69dc2d05dc8 100644 (file)
@@ -54,5 +54,4 @@ DEF_OP_VV (div, 256, int64_t, /)
 DEF_OP_VV (div, 512, int64_t, /)
 
 /* { dg-final { scan-assembler-times {vdivu?\.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+} 42 } } */
-/* TODO: Ideally, we should make sure there is no "csrr vlenb". However, we still have 'csrr vlenb' for some cases since we don't support VLS mode conversion which are needed by division.  */
 /* { dg-final { scan-assembler-not {csrr} } } */
index b34a349949bac5a2ce51ff17bf0a2c05ba7abfbb..db2295b2dd671cd7e42cd7019a34d7fd9cf3e623 100644 (file)
@@ -54,5 +54,4 @@ DEF_OP_VV (shift, 256, int64_t, <<)
 DEF_OP_VV (shift, 512, int64_t, <<)
 
 /* { dg-final { scan-assembler-times {vsll\.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+} 41 } } */
-/* TODO: Ideally, we should make sure there is no "csrr vlenb". However, we still have 'csrr vlenb' for some cases since we don't support VLS mode conversion which are needed by division.  */
 /* { dg-final { scan-assembler-not {csrr} } } */