public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-2516] [PR106867] Add test for PR.
Date: Wed,  7 Sep 2022 11:04:27 +0000 (GMT)	[thread overview]
Message-ID: <20220907110427.D0952385841A@sourceware.org> (raw)

https://gcc.gnu.org/g:22cefe5c22a90d20e2d9f629402b0522c03fa59c

commit r13-2516-g22cefe5c22a90d20e2d9f629402b0522c03fa59c
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Wed Sep 7 12:58:49 2022 +0200

    [PR106867] Add test for PR.
    
            PR tree-optimization/106867
    
    gcc/testsuite/ChangeLog:
    
            * gcc.dg/tree-ssa/pr106867.c: New test.

Diff:
---
 gcc/testsuite/gcc.dg/tree-ssa/pr106867.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr106867.c b/gcc/testsuite/gcc.dg/tree-ssa/pr106867.c
new file mode 100644
index 00000000000..68773d9ae74
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr106867.c
@@ -0,0 +1,16 @@
+// { dg-do compile }
+// { dg-options "-O2 -fno-tree-fre" }
+
+double m;
+int n;
+
+void
+foo (void)
+{
+  static double a[] = { 0.0 / 0.0, 0.0 };
+  int i;
+
+  for (i = 0; i < n; ++i)
+    if (m >= a[i])
+      __builtin_abort ();
+}

                 reply	other threads:[~2022-09-07 11:04 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=20220907110427.D0952385841A@sourceware.org \
    --to=aldyh@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).