]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Specify mtune and march for PR113742
authorEdwin Lu <ewlu@rivosinc.com>
Tue, 20 Feb 2024 21:53:40 +0000 (13:53 -0800)
committerEdwin Lu <ewlu@rivosinc.com>
Wed, 21 Feb 2024 17:40:05 +0000 (09:40 -0800)
The testcase pr113742.c is failing for 32 bit targets due to the following cc1
error:
cc1: error: ABI requries '-march=rv64'

Specify '-march=rv64gc' with '-mtune=sifive-p600-series'

PR target/113742

gcc/testsuite/ChangeLog:

* gcc.target/riscv/pr113742.c: change mcpu to mtune and add march

Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
gcc/testsuite/gcc.target/riscv/pr113742.c

index ab8934c2a8a3542385c50c09c263ccee8d8171d0..573afd6f0ad9e1e6b37e9202c4ace3a1939ec60f 100644 (file)
@@ -1,4 +1,4 @@
-//* { dg-do compile } */
-/* { dg-options "-O2 -finstrument-functions -mabi=lp64d -mcpu=sifive-p670" } */
+/* { dg-do compile } */
+/* { dg-options "-O2 -finstrument-functions -march=rv64gc -mabi=lp64d -mtune=sifive-p600-series" } */
 
 void foo(void) {}