re PR target/29169 (sse3-not-fisttp.c scan-assembler-not fisttp FAILs on i386-pc...
authorUros Bizjak <uros@kss-loka.si>
Sat, 23 Sep 2006 14:40:07 +0000 (16:40 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 23 Sep 2006 14:40:07 +0000 (16:40 +0200)
        PR target/29169
        * gcc.target/i386/sse-21.c: Rename from sse3-not-fisttp.c.
        (dg-options): Add -mfpmath=387.

From-SVN: r117171

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/sse-21.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/sse3-not-fisttp.c [deleted file]

index e6c4a117b31d59a607f1656c6d5df4ea0e3def7e..7ab082687fffb3bbb82439f30636c8787546553c 100644 (file)
@@ -1,3 +1,9 @@
+2006-09-23  Uros Bizjak  <uros@kss-loka.si>
+
+       PR target/29169
+       * gcc.target/i386/sse-21.c: Rename from sse3-not-fisttp.c.
+       (dg-options): Add -mfpmath=387.
+
 2006-09-23  Jakub Jelinek  <jakub@redhat.com>
 
        PR c/28706
diff --git a/gcc/testsuite/gcc.target/i386/sse-21.c b/gcc/testsuite/gcc.target/i386/sse-21.c
new file mode 100644 (file)
index 0000000..119cc94
--- /dev/null
@@ -0,0 +1,24 @@
+/* Test that we don't generate a fisttp instruction when -mno-sse3.  */
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
+/* { dg-options "-O -mfpmath=387 -march=nocona -mno-sse3" } */
+/* { dg-final { scan-assembler-not "fisttp" } } */
+struct foo
+{
+ long a;
+ long b;
+};
+
+extern double c;
+
+extern unsigned long long baz (void);
+
+int
+walrus (const struct foo *input)
+{
+    unsigned long long d;
+
+    d = baz ()
+      + (unsigned long long) (((double) input->a * 1000000000
+                             + (double) input->b) * c);
+    return (d ? 1 : 0);
+}
diff --git a/gcc/testsuite/gcc.target/i386/sse3-not-fisttp.c b/gcc/testsuite/gcc.target/i386/sse3-not-fisttp.c
deleted file mode 100644 (file)
index 2f3261a..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Test that we don't generate a fisttp instruction when -mno-sse3.  */
-/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
-/* { dg-options "-O -march=nocona -mno-sse3" } */
-/* { dg-final { scan-assembler-not "fisttp" } } */
-struct foo
-{
- long a;
- long b;
-};
-
-extern double c;
-
-extern unsigned long long baz (void);
-
-int
-walrus (const struct foo *input)
-{
-    unsigned long long d;
-
-    d = baz ()
-      + (unsigned long long) (((double) input->a * 1000000000
-                             + (double) input->b) * c);
-    return (d ? 1 : 0);
-}