public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5633] RISC-V: Fix reduc_run-9.c test value check bug
@ 2023-11-21 2:40 Lehua Ding
0 siblings, 0 replies; only message in thread
From: Lehua Ding @ 2023-11-21 2:40 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7e2a429ae8f938a94c69bcab96062c9f036b721e
commit r14-5633-g7e2a429ae8f938a94c69bcab96062c9f036b721e
Author: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Date: Tue Nov 21 10:13:38 2023 +0800
RISC-V: Fix reduc_run-9.c test value check bug
The current test value check is incorrect which is exposed on -march=rv64gcv_zvl256b
Confirm on X86 also abort:
[jzzhong@rios-cad121:/work/home/jzzhong/work/insn]$./a.out
------33.000000,4078.000000,45001776.000000,63369904.000000---
Aborted (core dumped)
Adapt the value check according to X86 result.
Pushed as it is obvious.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/autovec/reduc/reduc_run-9.c: Fix bug.
Diff:
---
gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc_run-9.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc_run-9.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc_run-9.c
index a0d59040ce8..0f95e61ee47 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc_run-9.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc_run-9.c
@@ -1,5 +1,4 @@
/* { dg-do run { target { riscv_v } } } */
-/* { dg-additional-options "--param=riscv-autovec-preference=scalable -ffast-math -fno-vect-cost-model" } */
#define N 0x1100
@@ -14,8 +13,8 @@ main (void)
if (add_loop (x, 0, 33) != 33
|| add_loop (x, 11, 30) != 4078
- || add_loop (x, 0x100, 45) != 45001773
- || add_loop (x, 0x11f, 300) != 63369900)
+ || add_loop (x, 0x100, 45) != 45001776
+ || add_loop (x, 0x11f, 300) != 63369904)
__builtin_abort ();
return 0;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-21 2:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-21 2:40 [gcc r14-5633] RISC-V: Fix reduc_run-9.c test value check bug Lehua Ding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).