OSDN Git Service

2007-05-23 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / ssse3-pabsd.c
index 75a0656..09880b7 100644 (file)
@@ -1,26 +1,11 @@
 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
 /* { dg-require-effective-target ssse3 } */
 /* { dg-options "-O2 -mssse3" } */
-#include <tmmintrin.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 ();
 
-  /* 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>
 
 /* Test the 64-bit form */
 static void