summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/sse3-movddup.c
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-23 15:25:16 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-23 15:25:16 +0000
commitae6aae3a36e7a97d71177a75e6e0a3cf963c73ab (patch)
tree6512453f41de340ecba2fbdb722034a7a4ae4735 /gcc/testsuite/gcc.target/i386/sse3-movddup.c
parenta657045415d9085c361ab57ed0def43c69d1782f (diff)
downloadgcc-ae6aae3a36e7a97d71177a75e6e0a3cf963c73ab.tar.gz
2007-05-23 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/sse3-addsubpd.c: Don't include stdlib.h nor i386-cpuid.h. Include sse3-check.h. Remove main (). * gcc.target/i386/sse3-addsubps.c: Likewise. * gcc.target/i386/sse3-haddpd.c: Likewise. * gcc.target/i386/sse3-haddps.c: Likewise. * gcc.target/i386/sse3-hsubpd.c: Likewise. * gcc.target/i386/sse3-hsubps.c: Likewise. * gcc.target/i386/sse3-lddqu.c: Likewise. * gcc.target/i386/sse3-movddup.c: Likewise. * gcc.target/i386/sse3-movshdup.c: Likewise. * gcc.target/i386/sse3-movsldup.c: Likewise. * gcc.target/i386/ssse3-pabsb.c: Don't include stdlib.h nor i386-cpuid.h. Include ssse3-check.h. Remove main (). * gcc.target/i386/ssse3-pabsd.c: Likewise. * gcc.target/i386/ssse3-pabsw.c: Likewise. * gcc.target/i386/ssse3-palignr.c: Likewise. * gcc.target/i386/ssse3-phaddd.c: Likewise. * gcc.target/i386/ssse3-phaddsw.c: Likewise. * gcc.target/i386/ssse3-phaddw.c: Likewise. * gcc.target/i386/ssse3-phsubd.c: Likewise. * gcc.target/i386/ssse3-phsubsw.c: Likewise. * gcc.target/i386/ssse3-phsubw.c: Likewise. * gcc.target/i386/ssse3-pmaddubsw.c: Likewise. * gcc.target/i386/ssse3-pmulhrsw.c: Likewise. * gcc.target/i386/ssse3-pshufb.c: Likewise. * gcc.target/i386/ssse3-psignb.c: Likewise. * gcc.target/i386/ssse3-psignd.c: Likewise. * gcc.target/i386/ssse3-psignw.c: Likewise. * gcc.target/i386/ssse3-vals.h: Likewise. * gcc.target/i386/sse3-check.h: New file. * gcc.target/i386/ssse3-check.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124994 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/sse3-movddup.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/sse3-movddup.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/gcc/testsuite/gcc.target/i386/sse3-movddup.c b/gcc/testsuite/gcc.target/i386/sse3-movddup.c
index 96641c60d2d..0ceb3f52cf3 100644
--- a/gcc/testsuite/gcc.target/i386/sse3-movddup.c
+++ b/gcc/testsuite/gcc.target/i386/sse3-movddup.c
@@ -1,24 +1,9 @@
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -msse3" } */
-#include <pmmintrin.h>
-#include <stdlib.h>
-#include "../../gcc.dg/i386-cpuid.h"
-
-static void sse3_test (void);
-
-int
-main ()
-{
- unsigned long cpu_facilities;
- cpu_facilities = i386_cpuid_ecx ();
+#include "sse3-check.h"
- /* Run SSE3 test only if host has SSE3 support. */
- if ((cpu_facilities & bit_SSE3))
- sse3_test ();
-
- exit (0);
-}
+#include <pmmintrin.h>
static void
sse3_test_movddup_mem (double *i1, double *r)