* [PATCH] RISC-V: Fix -march error of zhinxmin testcases
@ 2023-08-18 2:59 Lehua Ding
2023-08-18 6:39 ` Robin Dapp
0 siblings, 1 reply; 3+ messages in thread
From: Lehua Ding @ 2023-08-18 2:59 UTC (permalink / raw)
To: gcc-patches; +Cc: juzhe.zhong, kito.cheng, rdapp.gcc, palmer, jeffreyalaw
This little patch fixs the -march error of a zhinxmin testcase I added earlier
and an old zhinxmin testcase, since these testcases are for zhinxmin extension
and not zfhmin extension.
---
gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-3.c | 2 +-
gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-4.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-3.c b/gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-3.c
index 7a43641a5a6..939b3787383 100644
--- a/gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-3.c
+++ b/gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-3.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-march=rv64if_zfhmin -mabi=lp64f -O" } */
+/* { dg-options "-march=rv64i_zhinxmin -mabi=lp64 -O" } */
int foo1 (_Float16 a, _Float16 b)
{
diff --git a/gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-4.c b/gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-4.c
index 4ac49228898..ebc615a483f 100644
--- a/gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-4.c
+++ b/gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-4.c
@@ -1,11 +1,12 @@
/* { dg-do compile } */
-/* { dg-options "-march=rv64if_zfhmin -mabi=lp64 -O3 -mcmodel=medany" } */
+/* { dg-options "-march=rv64i_zhinxmin -mabi=lp64 -O3 -mcmodel=medany" } */
/* { dg-final { check-function-bodies "**" "" } } */
/* Make sure zfhmin behaves the same way as zfh. */
/*
** foo: { target { no-opts "-flto" } }
-** lh\ta0,\.LC0
+** lla\ta[0-9]+,\.LC0
+** lhu\ta[0-9]+,0\(a[0-9]+\)
** ...
*/
_Float16 foo() { return 0.8974; }
--
2.36.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] RISC-V: Fix -march error of zhinxmin testcases
2023-08-18 2:59 [PATCH] RISC-V: Fix -march error of zhinxmin testcases Lehua Ding
@ 2023-08-18 6:39 ` Robin Dapp
2023-08-18 7:16 ` Lehua Ding
0 siblings, 1 reply; 3+ messages in thread
From: Robin Dapp @ 2023-08-18 6:39 UTC (permalink / raw)
To: Lehua Ding, gcc-patches
Cc: rdapp.gcc, juzhe.zhong, kito.cheng, palmer, jeffreyalaw
> This little patch fixs the -march error of a zhinxmin testcase I added earlier
> and an old zhinxmin testcase, since these testcases are for zhinxmin extension
> and not zfhmin extension.
Arg, I should have noticed that ;)
OK, of course.
Regards
Robin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] RISC-V: Fix -march error of zhinxmin testcases
2023-08-18 6:39 ` Robin Dapp
@ 2023-08-18 7:16 ` Lehua Ding
0 siblings, 0 replies; 3+ messages in thread
From: Lehua Ding @ 2023-08-18 7:16 UTC (permalink / raw)
To: Robin Dapp, gcc-patches; +Cc: juzhe.zhong, kito.cheng, palmer, jeffreyalaw
On 2023/8/18 14:39, Robin Dapp wrote:
>> This little patch fixs the -march error of a zhinxmin testcase I added earlier
>> and an old zhinxmin testcase, since these testcases are for zhinxmin extension
>> and not zfhmin extension.
>
> Arg, I should have noticed that ;)
> OK, of course.
>
> Regards
> Robin
>
Committed, thanks Robin.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-18 7:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-18 2:59 [PATCH] RISC-V: Fix -march error of zhinxmin testcases Lehua Ding
2023-08-18 6:39 ` Robin Dapp
2023-08-18 7:16 ` Lehua Ding
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).