[committed] RISC-V: Fix testsuite
Checks
Commit Message
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.
---
.../riscv/rvv/autovec/partial/single_rgroup-3.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
@@ -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) \