summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c b/gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c
index d3408483faa..6f1e2a39240 100644
--- a/gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c
+++ b/gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c
@@ -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