public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9118] RISC-V: Specify mtune and march for PR113742
@ 2024-02-21 17:40 Edwin Lu
  0 siblings, 0 replies; only message in thread
From: Edwin Lu @ 2024-02-21 17:40 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3232ebd91ed55b275b9d5a6e8355336382c4afd5

commit r14-9118-g3232ebd91ed55b275b9d5a6e8355336382c4afd5
Author: Edwin Lu <ewlu@rivosinc.com>
Date:   Tue Feb 20 13:53:40 2024 -0800

    RISC-V: Specify mtune and march for PR113742
    
    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>

Diff:
---
 gcc/testsuite/gcc.target/riscv/pr113742.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/riscv/pr113742.c b/gcc/testsuite/gcc.target/riscv/pr113742.c
index ab8934c2a8a3..573afd6f0ad9 100644
--- a/gcc/testsuite/gcc.target/riscv/pr113742.c
+++ b/gcc/testsuite/gcc.target/riscv/pr113742.c
@@ -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) {}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-21 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-21 17:40 [gcc r14-9118] RISC-V: Specify mtune and march for PR113742 Edwin Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).