public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Add testcase for PR rtl-optimization/68250
@ 2015-11-27 12:17 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2015-11-27 12:17 UTC (permalink / raw)
  To: gcc-patches

Hi!

Another REE issue dup.

2015-11-27  Jakub Jelinek  <jakub@redhat.com>

	PR rtl-optimization/68250
	* gcc.c-torture/execute/pr68250.c: New test.

--- gcc/testsuite/gcc.c-torture/execute/pr68250.c.jj	2015-11-27 13:10:13.718447138 +0100
+++ gcc/testsuite/gcc.c-torture/execute/pr68250.c	2015-11-27 13:10:07.716531620 +0100
@@ -0,0 +1,40 @@
+/* PR rtl-optimization/68250 */
+
+signed char a, b, h, k, l, m, o;
+short c, d, n;
+int e, f, g, j, q;
+
+void
+fn1 (void)
+{
+  int p = b || a;
+  n = o > 0 || d > 1 >> o ? d : d << o;
+  for (; j; j++)
+    m = c < 0 || m || c << p;
+  l = f + 1;
+  for (; f < 1; f = 1)
+    k = h + 1;
+}
+
+__attribute__((noinline, noclone)) void
+fn2 (int k)
+{
+  if (k != 1)
+    __builtin_abort ();
+}
+
+int
+main ()
+{
+  signed char i;
+  for (; e < 1; e++)
+    {
+      fn1 ();
+      if (k)
+	i = k;
+      if (i > q)
+	g = 0;
+    }
+  fn2 (k);
+  return 0;
+}

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-27 12:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-27 12:17 [PATCH] Add testcase for PR rtl-optimization/68250 Jakub Jelinek

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).