From 57d1c9c1fe57a0de66e5c20538f77f49b1298071 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christoph=20M=C3=BCllner?= Date: Wed, 6 Sep 2023 10:52:21 +0200 Subject: [PATCH] riscv: xtheadbb: Fix xtheadbb-li-rotr test for rv32 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The test was introduced recently and tests a RV64-only feature. However, when testing an RV32 compiler, the test gets executed as well and fails with "cc1: error: ABI requires '-march=rv32'". This patch fixes this by adding '-mabi=lp64' (like it is done for other RV64-only tests as well). Retested with RV32 and RV64 to ensure this won't pop up again. Signed-off-by: Christoph Müllner gcc/testsuite/ChangeLog: * gcc.target/riscv/xtheadbb-li-rotr.c: Don't run for RV32. --- gcc/testsuite/gcc.target/riscv/xtheadbb-li-rotr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/riscv/xtheadbb-li-rotr.c b/gcc/testsuite/gcc.target/riscv/xtheadbb-li-rotr.c index 136dcb01cf40..01f4215179af 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadbb-li-rotr.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadbb-li-rotr.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-march=rv64gc_xtheadbb" } */ +/* { dg-options "-march=rv64gc_xtheadbb -mabi=lp64" } */ /* { dg-skip-if "" { *-*-* } {"-O0" "-Os" "-Og" "-Oz" "-flto" } } */ /* { dg-final { check-function-bodies "**" "" } } */ -- 2.47.2