Hi, I messed up the return value in check_effective_target_rvv_zvl256b_ok and check_effective_target_rvv_zvl512b_ok. This fixes it and also just uses the current march for the check.
Going to commit as obvious. Regards Robin gcc/testsuite/ChangeLog: * lib/target-supports.exp: Fix effective target check. --- gcc/testsuite/lib/target-supports.exp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index d3569c80b6f..c98c9d9fa76 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1960,15 +1960,15 @@ proc check_effective_target_riscv_v { } { proc check_effective_target_rvv_zvl256b_ok { } { # Check if the target has a VLENB of 32. - set gcc_march [regsub {[[:alnum:]]*} [riscv_get_arch] &v] + set gcc_march [riscv_get_arch] return [check_runtime ${gcc_march}_exec { int main() { int vlenb = 0; asm ("csrr %0,vlenb" : "=r" (vlenb) : : ); if (vlenb == 32) - return 1; - return 0; + return 0; + return 1; } } "-march=${gcc_march}"] } @@ -1978,15 +1978,15 @@ proc check_effective_target_rvv_zvl256b_ok { } { proc check_effective_target_rvv_zvl512b_ok { } { # Check if the target has a VLENB of 64. - set gcc_march [regsub {[[:alnum:]]*} [riscv_get_arch] &v] + set gcc_march [riscv_get_arch] return [check_runtime ${gcc_march}_exec { int main() { int vlenb = 0; asm ("csrr %0,vlenb" : "=r" (vlenb) : : ); if (vlenb == 64) - return 1; - return 0; + return 0; + return 1; } } "-march=${gcc_march}"] } -- 2.46.0