* [PATCH] tree-optimization/111792 - new testcase
@ 2023-11-13 12:39 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-11-13 12:39 UTC (permalink / raw)
To: gcc-patches
This was fixed as part of the PR111000 fix.
Tested on x86_64-unknown-linux-gnu, pushed.
PR tree-optimization/111792
PR tree-optimization/111000
* gcc.dg/torture/pr111792.c: New testcase.
---
gcc/testsuite/gcc.dg/torture/pr111792.c | 39 +++++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 gcc/testsuite/gcc.dg/torture/pr111792.c
diff --git a/gcc/testsuite/gcc.dg/torture/pr111792.c b/gcc/testsuite/gcc.dg/torture/pr111792.c
new file mode 100644
index 00000000000..58ae6f149d1
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr111792.c
@@ -0,0 +1,39 @@
+/* { dg-do run } */
+/* { dg-require-effective-target lp64 } */
+
+int c, d, h, i, j, l, *n = &h;
+short e, f, g, *k, m;
+long o;
+short p(short p1, int q) { return q >= 32 || p1 > 5 >> q ? 1 : p1 << q; }
+long u(unsigned p1)
+{
+ int r = 50, s, *t = &c;
+ L:
+ m && (*k = 0);
+ for (d = 1; d; d--)
+ for (s = 0; s < 3; s++) {
+ *n = i ^ p1;
+ *t = p1 > (unsigned)p((unsigned)(o = 4073709551615) >= p1 && 5, r);
+ if (f)
+ goto L;
+ }
+ for (; e < 1;)
+ return j;
+ int *b[2] = {&s, &r};
+ for (; l; l--) {
+ long a[1];
+ for (r = 0; r < 1; r++) {
+ h = a[0];
+ if (g)
+ goto L;
+ }
+ }
+ return 0;
+}
+int main()
+{
+ u(6);
+ if (c != 1)
+ __builtin_abort();
+ return 0;
+}
--
2.35.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-13 12:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 12:39 [PATCH] tree-optimization/111792 - new testcase Richard Biener
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).