OSDN Git Service

* gcc.c-torture/execute/930529-1.x: New file.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jun 2000 19:24:40 +0000 (19:24 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jun 2000 19:24:40 +0000 (19:24 +0000)
        * gcc.dg/920413-1.c: Adjust expexted warning text.
        * gcc.dg/980217-1.c: Declare abort.
        * gcc.dg/cpp/20000628-1a.h: Use a declaration instead of an asm.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34789 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/930529-1.x [new file with mode: 0644]
gcc/testsuite/gcc.dg/920413-1.c
gcc/testsuite/gcc.dg/980217-1.c
gcc/testsuite/gcc.dg/cpp/20000628-1a.h

index 635263c..ce9855b 100644 (file)
@@ -1,3 +1,10 @@
+2000-06-29  Richard Henderson  <rth@redhat.com>
+
+       * gcc.c-torture/execute/930529-1.x: New file.
+       * gcc.dg/920413-1.c: Adjust expexted warning text.
+       * gcc.dg/980217-1.c: Declare abort.
+       * gcc.dg/cpp/20000628-1a.h: Use a declaration instead of an asm.
+
 Thu Jun 29 09:42:40 2000  Jeffrey A Law  (law@cygnus.com)
 
        * g77.f-torture/compile/20000629-1.f: New test.
diff --git a/gcc/testsuite/gcc.c-torture/execute/930529-1.x b/gcc/testsuite/gcc.c-torture/execute/930529-1.x
new file mode 100644 (file)
index 0000000..a44f482
--- /dev/null
@@ -0,0 +1,18 @@
+# The problem on Alpha at -O3 is that when dd is inlined, we have
+# division by a constant, which gets converted to multiplication
+# by a large constant, which gets turned into an induction variable.
+# The problem is that the multiplication was unsigned SImode, and the
+# induction variable is DImode, and we lose the truncation that
+# should have happened.
+
+set torture_eval_before_execute {
+
+    set compiler_conditional_xfail_data {
+        "division by a constant conflicts with strength reduction" \
+        "alpha*-*-*" \
+        { "-O3" } \
+        { "" }
+    }
+}
+
+return 0
index db6bd08..db67ede 100644 (file)
@@ -5,6 +5,6 @@ int
 x (b)
 {
   return
-  4294967295U   /* { dg-warning "width of integer constant may change" } */
+  4294967295U   /* { dg-warning "width of integer constant" } */
    / (unsigned long) b;
 }
index 2236e84..6d56d83 100644 (file)
@@ -3,6 +3,8 @@
 /* { dg-do run { target alpha*-*-* } } */
 /* { dg-options "-mieee -O2" } */
 
+extern void abort(void);
+
 typedef int int32_t __attribute__ ((__mode__ (  __SI__ ))) ;
 typedef union
 {
index 4c5779b..1b6ff80 100644 (file)
@@ -1,2 +1,2 @@
 /* Included from 20000628-1.h */
-asm ("");
+extern int x;