From: Kito Cheng Date: Mon, 8 Jan 2024 03:31:12 +0000 (+0800) Subject: RISC-V: Fix testsuite X-Git-Tag: basepoints/gcc-15~3144 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d31d6606201b339825c370c2e1969b2dcd17f39;p=thirdparty%2Fgcc.git 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 --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 604e90480559..dfe48d6dae12 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) \