OSDN Git Service

* gcc.target/i386/sse-17.c: Include sse2-check.h.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / ssse3-palignr.c
index 683d24f..386cddb 100644 (file)
@@ -1,26 +1,12 @@
-/* { dg-do run { target i?86-*-* x86_64-*-* } } */
-/* { dg-options "-O2 -mssse3" } */
-#include <tmmintrin.h>
-#include <string.h>
-#include <stdlib.h>
-#include "../../gcc.dg/i386-cpuid.h"
-#include "ssse3-vals.h"
-
-static void ssse3_test (void);
-
-int
-main ()
-{
-  unsigned long cpu_facilities;
-  cpu_facilities = i386_cpuid_ecx ();
+/* { dg-do run } */
+/* { dg-require-effective-target ssse3 } */
+/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */
 
-  /* Run SSSE3 test only if host has SSSE3 support.  */
-  if ((cpu_facilities & bit_SSSE3))
-    ssse3_test ();
+#include "ssse3-check.h"
+#include "ssse3-vals.h"
 
-  exit (0);
-}
+#include <tmmintrin.h>
+#include <string.h>
 
 /* Test the 64-bit form */
 static void