public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2516] [PR106867] Add test for PR.
@ 2022-09-07 11:04 Aldy Hernandez
0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2022-09-07 11:04 UTC (permalink / raw)
To: gcc-cvs
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 ();
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-07 11:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-07 11:04 [gcc r13-2516] [PR106867] Add test for PR Aldy Hernandez
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).