badshift.c: Renamed to...
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 24 Mar 2005 10:52:38 +0000 (10:52 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Thu, 24 Mar 2005 10:52:38 +0000 (10:52 +0000)
* gcc.dg/badshift.c: Renamed to...
* gcc.dg/torture/badshift.c: ... this.  Remove explicit -O1.

From-SVN: r96989

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/badshift.c [deleted file]
gcc/testsuite/gcc.dg/torture/badshift.c [new file with mode: 0644]

index e53a19436384cbe4a40dd672e7c9e8c6bac15bf3..5fdb7b21628db3772d059230c6b6ba95e9097334 100644 (file)
@@ -1,5 +1,8 @@
 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
 
+       * gcc.dg/badshift.c: Renamed to...
+       * gcc.dg/torture/badshift.c: ... this.  Remove explicit -O1.
+
        * gcc.target/i386/badshift.c: Renamed to...
        * gcc.dg/badshift.c: ... this.  Fix typo.  Use -march=i386 on i?86
        only.
diff --git a/gcc/testsuite/gcc.dg/badshift.c b/gcc/testsuite/gcc.dg/badshift.c
deleted file mode 100644 (file)
index 6c32d88..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/* PR rtl-optimization/20532 */
-
-/* { dg-do run } */
-/* { dg-options "-O1" } */
-/* { dg-options "-march=i386 -O1" { target i?86-*-* } } */
-
-/* We used to optimize the DImode shift-by-32 to zero because in combine
-   we turned:
-
-     (v << 31) + (v << 31)
-
-   into:
-
-     (v * (((HOST_WIDE_INT)1 << 31) + ((HOST_WIDE_INT)1 << 31)))
-
-   With a 32-bit HOST_WIDE_INT, the coefficient overflowed to zero.  */
-
-unsigned long long int badshift(unsigned long long int v)
-{
-        return v << 31 << 1;
-}
-
-extern void abort ();
-
-int main() {
-  if (badshift (1) == 0)
-    abort ();
-  return 0;
-}
diff --git a/gcc/testsuite/gcc.dg/torture/badshift.c b/gcc/testsuite/gcc.dg/torture/badshift.c
new file mode 100644 (file)
index 0000000..d656ed6
--- /dev/null
@@ -0,0 +1,29 @@
+/* PR rtl-optimization/20532 */
+
+/* { dg-do run } */
+/* { dg-options "" } */
+/* { dg-options "-march=i386" { target i?86-*-* } } */
+
+/* We used to optimize the DImode shift-by-32 to zero because in combine
+   we turned:
+
+     (v << 31) + (v << 31)
+
+   into:
+
+     (v * (((HOST_WIDE_INT)1 << 31) + ((HOST_WIDE_INT)1 << 31)))
+
+   With a 32-bit HOST_WIDE_INT, the coefficient overflowed to zero.  */
+
+unsigned long long int badshift(unsigned long long int v)
+{
+        return v << 31 << 1;
+}
+
+extern void abort ();
+
+int main() {
+  if (badshift (1) == 0)
+    abort ();
+  return 0;
+}