Testcase for loop reversal (check_dbra_loop) bug.
authorJim Wilson <wilson@cygnus.com>
Tue, 7 Apr 1998 12:02:08 +0000 (12:02 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 7 Apr 1998 12:02:08 +0000 (05:02 -0700)
From-SVN: r19031

gcc/testsuite/gcc.c-torture/ChangeLog
gcc/testsuite/gcc.c-torture/execute/980407-1.c [new file with mode: 0644]

index c73d2613fd57eb3bea5f571e119ae6a3185ea430..2641bac61f16db7e99b7a9235448af221a47b9ce 100644 (file)
@@ -1,3 +1,7 @@
+Tue Apr  7 12:01:24 1998  Jim Wilson  <wilson@cygnus.com>
+
+       * execute/980407-1.c: New test from Joern Rennecke.
+
 Fri Apr  3 12:27:49 1998  Jim Wilson  <wilson@cygnus.com>
 
        * compile/980329-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/execute/980407-1.c b/gcc/testsuite/gcc.c-torture/execute/980407-1.c
new file mode 100644 (file)
index 0000000..0b06ff9
--- /dev/null
@@ -0,0 +1,16 @@
+int
+f()
+{
+  int j = 1;
+  long i;
+  for (i = -0x70000000L; i < 0x60000000L; i += 0x10000000L) j <<= 1;
+  return j;
+}
+
+int
+main ()
+{
+  if (f () != 8192)
+    abort ();
+  return 0;
+}