public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Yixuan Chen <chenyixuan@iscas.ac.cn>
To: gcc-patches@gcc.gnu.org
Cc: kito.cheng@gmail.com, andrew@sifive.com,
	Oria Chen <oriachiuan@gmail.com>
Subject: [PATCH] Optimize testcase
Date: Tue, 15 Nov 2022 20:13:45 +0800	[thread overview]
Message-ID: <20221115121345.3650155-1-chenyixuan@iscas.ac.cn> (raw)

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


             reply	other threads:[~2022-11-15 12:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-15 12:13 Yixuan Chen [this message]
2022-11-15 12:17 ` Jakub Jelinek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221115121345.3650155-1-chenyixuan@iscas.ac.cn \
    --to=chenyixuan@iscas.ac.cn \
    --cc=andrew@sifive.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=kito.cheng@gmail.com \
    --cc=oriachiuan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).