public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-10159] testsuite: Add testcase for already fixed PR [PR107385]
Date: Thu, 15 Feb 2024 15:17:55 +0000 (GMT)	[thread overview]
Message-ID: <20240215151755.5A6F7384F00C@sourceware.org> (raw)

https://gcc.gnu.org/g:d2ebd5948bd21f54fdbc5ea99e391be59d0af64c

commit r12-10159-gd2ebd5948bd21f54fdbc5ea99e391be59d0af64c
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Feb 15 15:55:25 2024 +0100

    testsuite: Add testcase for already fixed PR [PR107385]
    
    This testcase has been fixed by the PR113921 fix, but unlike testcase
    in there this one is not target specific.
    
    2024-02-15  Jakub Jelinek  <jakub@redhat.com>
    
            PR middle-end/107385
            * gcc.dg/pr107385.c: New test.
    
    (cherry picked from commit 5459a9074afabf700f055fc8164f88dadb1c39b0)

Diff:
---
 gcc/testsuite/gcc.dg/pr107385.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/pr107385.c b/gcc/testsuite/gcc.dg/pr107385.c
new file mode 100644
index 000000000000..b678f57a3dfc
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr107385.c
@@ -0,0 +1,20 @@
+/* PR middle-end/107385 */
+/* { dg-do run } */
+/* { dg-options "-O2" } */
+
+__attribute__((noipa)) int
+foo (void)
+{
+  int x;
+  asm goto ("": "=r" (x) : "0" (15) :: lab);
+  x = 6;
+lab:
+  return x;
+}
+
+int
+main ()
+{
+  if (foo () != 6)
+    __builtin_abort ();
+}

                 reply	other threads:[~2024-02-15 15:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20240215151755.5A6F7384F00C@sourceware.org \
    --to=jakub@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /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).