sse5-convert.c: Fix target selector and rename to...
authorUros Bizjak <uros@gcc.gnu.org>
Sat, 29 Sep 2007 08:01:12 +0000 (10:01 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 29 Sep 2007 08:01:12 +0000 (10:01 +0200)
        * gcc.target/i386/sse5-convert.c: Fix target selector and rename to...
        * gcc.target/i386/pr33524.c: ...this.

From-SVN: r128883

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr33524.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/sse5-convert.c [deleted file]

index ce12f805c0c4e51632eaf70c234ef564aadfb706..54591c62fa44cd6c326e292dedfa3b3086cd8d3a 100644 (file)
 
 2007-09-25  Michael Meissner  <michael.meissner@amd.com>
 
-       PR c/33524
+       PR target/33524
        * config/i386/i386.c (ix86_expand_sse5_unpack): Change to call
        gen_sse5_pperm_sign_v4si_v2di and gen_sse5_pperm_zero_v4si_v2di
        for vector int32 -> int64 conversions.  Don't write beyond the end
index a44cf45a65f8d912d7be6896ddb34e868c6fd340..1964b5ca1be3320ba1065054e55ec6867f4ee0d1 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-29  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.target/i386/sse5-convert.c: Fix target selector and rename to...
+       * gcc.target/i386/pr33524.c: ...this.
+
 2007-09-28  Tobias Schlüter  <tobi@gcc.gnu.org>
 
        PR fortran/33354
 
 2007-09-25  Michael Meissner  <michael.meissner@amd.com>
 
-       PR c/33524
+       PR target/33524
        * gcc.target/i386/sse5-convert.c: New file, test int->long
        vectorized conversions.
 
diff --git a/gcc/testsuite/gcc.target/i386/pr33524.c b/gcc/testsuite/gcc.target/i386/pr33524.c
new file mode 100644 (file)
index 0000000..5b484a2
--- /dev/null
@@ -0,0 +1,25 @@
+/* Test that the compiler properly optimizes vector SI->DI conversions.  This
+   was a bug in the initial SSE5 code.  */
+
+/* { dg-do compile } */
+/* { dg-require-effective-target lp64 } */
+/* { dg-options "-O2 -msse5 -ftree-vectorize" } */
+
+typedef long long __m128i  __attribute__ ((__vector_size__ (16), __may_alias__));
+
+#define SIZE 10240
+union {
+  signed   int   si[SIZE];
+  signed   long  sl[SIZE];
+  __m128i        align;
+} a, b;
+
+void conv_sign_int_sign_long (void)
+{
+  int i;
+
+  for (i = 0; i < SIZE; i++)
+    a.sl[i] = b.si[i];
+}
+
+/* { dg-final { scan-assembler "pperm" } } */
diff --git a/gcc/testsuite/gcc.target/i386/sse5-convert.c b/gcc/testsuite/gcc.target/i386/sse5-convert.c
deleted file mode 100644 (file)
index 0dfdc3c..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/* Test that the compiler properly optimizes vector SI->DI conversions.  This
-   was a bug in the initial SSE5 code.  */
-
-/* { dg-do compile { target x86_64-*-*} } */
-/* { dg-options "-O2 -msse5 -ftree-vectorize" } */
-
-/* This is PR c/33524 */
-
-typedef long long __m128i  __attribute__ ((__vector_size__ (16), __may_alias__));
-
-#define SIZE 10240
-union {
-  signed   int   si[SIZE];
-  signed   long  sl[SIZE];
-  __m128i        align;
-} a, b;
-
-void conv_sign_int_sign_long (void)
-{
-  int i;
-
-  for (i = 0; i < SIZE; i++)
-    a.sl[i] = b.si[i];
-}
-
-/* { dg-final { scan-assembler "pperm" } } */