re PR tree-optimization/80426 (wrong manipulation of range based on INT_MIN)
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 21 Apr 2017 08:03:54 +0000 (08:03 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 21 Apr 2017 08:03:54 +0000 (08:03 +0000)
PR tree-optimization/80426
* gcc.c-torture/execute/20170429-1.c: Rename into...
* gcc.c-torture/execute/20170419-1.c: ...this.

From-SVN: r247046

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

index f0a4f46967bf9ca1391ac4f6b07a2688cfc162bb..22176e677b6b1997f9bf20d077e4265c2d23c27d 100644 (file)
@@ -1,3 +1,9 @@
+2017-04-21  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR tree-optimization/80426
+       * gcc.c-torture/execute/20170429-1.c: Rename into...
+       * gcc.c-torture/execute/20170419-1.c: ...this.
+
 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/79804
diff --git a/gcc/testsuite/gcc.c-torture/execute/20170419-1.c b/gcc/testsuite/gcc.c-torture/execute/20170419-1.c
new file mode 100644 (file)
index 0000000..f59dbc7
--- /dev/null
@@ -0,0 +1,24 @@
+/* PR tree-optimization/80426 */
+/* Testcase by <ishiura-compiler@ml.kwansei.ac.jp> */
+
+#define INT_MAX 0x7fffffff
+#define INT_MIN (-INT_MAX-1)
+
+int x;
+
+int main (void)
+{
+  volatile int a = 0;
+  volatile int b = -INT_MAX;
+  int j;
+
+  for(j = 0; j < 18; j += 1) {
+    x = ( (a == 0) != (b - (int)(INT_MIN) ) );
+  }
+
+  if (x != 0)
+    __builtin_abort ();
+
+  return 0;
+}
+
diff --git a/gcc/testsuite/gcc.c-torture/execute/20170429-1.c b/gcc/testsuite/gcc.c-torture/execute/20170429-1.c
deleted file mode 100644 (file)
index f59dbc7..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/* PR tree-optimization/80426 */
-/* Testcase by <ishiura-compiler@ml.kwansei.ac.jp> */
-
-#define INT_MAX 0x7fffffff
-#define INT_MIN (-INT_MAX-1)
-
-int x;
-
-int main (void)
-{
-  volatile int a = 0;
-  volatile int b = -INT_MAX;
-  int j;
-
-  for(j = 0; j < 18; j += 1) {
-    x = ( (a == 0) != (b - (int)(INT_MIN) ) );
-  }
-
-  if (x != 0)
-    __builtin_abort ();
-
-  return 0;
-}
-