[gcc r14-6995] RISC-V: Fix testsuite
Kito Cheng
kito@gcc.gnu.org
Mon Jan 8 06:11:10 GMT 2024
https://gcc.gnu.org/g:4d31d6606201b339825c370c2e1969b2dcd17f39
commit r14-6995-g4d31d6606201b339825c370c2e1969b2dcd17f39
Author: Kito Cheng <kito.cheng@sifive.com>
Date: Mon Jan 8 11:31:12 2024 +0800
RISC-V: Fix testsuite
Don't use assert, it not work well with multilib testing.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.h: Use
check + abort rather than assert.
Diff:
---
.../gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.h b/gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.h
index 604e9048055..dfe48d6dae1 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.h
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.h
@@ -105,7 +105,9 @@ int cond[N] = {0};
if (b_##TYPE[i] != a_##TYPE[i]) __builtin_abort(); \
} \
else \
- assert (b_##TYPE[i] == 0); \
+ { \
+ if (b_##TYPE[i] != 0) __builtin_abort(); \
+ } \
}
#define run_7(TYPE) \
@@ -151,7 +153,9 @@ int cond[N] = {0};
if (b_##TYPE[i] != a_##TYPE[i]) __builtin_abort(); \
} \
else \
- assert (b_##TYPE[i] == 0); \
+ { \
+ if (b_##TYPE[i] != 0) __builtin_abort(); \
+ } \
}
#define run_10(TYPE) \
More information about the Gcc-cvs
mailing list