public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Optimize testcase
@ 2022-11-15 12:13 Yixuan Chen
  2022-11-15 12:17 ` Jakub Jelinek
  0 siblings, 1 reply; 2+ messages in thread
From: Yixuan Chen @ 2022-11-15 12:13 UTC (permalink / raw)
  To: gcc-patches; +Cc: kito.cheng, andrew, Oria Chen

From: Oria Chen <oriachiuan@gmail.com>

gcc/testsuite/ChangeLog:

2022-11-15  Yixuan Chen  <chenyixuan@iscas.ac.cn>

        * gcc.dg/fold-overflow-1.c: Optimize testcase, because riscv will use ".LC0" intead of ".LC1" and ".LC2" with "-O" compile option
---
 gcc/testsuite/gcc.dg/fold-overflow-1.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/fold-overflow-1.c b/gcc/testsuite/gcc.dg/fold-overflow-1.c
index 108df4e3155..02598bfa3d3 100644
--- a/gcc/testsuite/gcc.dg/fold-overflow-1.c
+++ b/gcc/testsuite/gcc.dg/fold-overflow-1.c
@@ -18,5 +18,6 @@ float foo2(void)
   return 1.0f/0.0f;
 }
 
-/* { dg-final { scan-assembler-times "2139095040" 2 { target { ! mmix-*-* } } } } */
+/* { dg-final { scan-assembler-times "2139095040" 2 { target { ! { mmix-*-*  riscv*-*-* } } } } } */
 /* { dg-final { scan-assembler-times "#7f800000" 2 { target mmix-*-* } } } */
+/* { dg-final { scan-assembler-times "2139095040" 3 { target riscv*-*-* } } } */
-- 
2.37.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Optimize testcase
  2022-11-15 12:13 [PATCH] Optimize testcase Yixuan Chen
@ 2022-11-15 12:17 ` Jakub Jelinek
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2022-11-15 12:17 UTC (permalink / raw)
  To: Yixuan Chen; +Cc: gcc-patches, kito.cheng, andrew, Oria Chen

On Tue, Nov 15, 2022 at 08:13:45PM +0800, Yixuan Chen wrote:
> From: Oria Chen <oriachiuan@gmail.com>
> 
> gcc/testsuite/ChangeLog:
> 
> 2022-11-15  Yixuan Chen  <chenyixuan@iscas.ac.cn>
> 
>         * gcc.dg/fold-overflow-1.c: Optimize testcase, because riscv will use ".LC0" intead of ".LC1" and ".LC2" with "-O" compile option

This is wrong.
See https://gcc.gnu.org/PR107608

	Jakub


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-15 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-15 12:13 [PATCH] Optimize testcase Yixuan Chen
2022-11-15 12:17 ` Jakub Jelinek

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).