From: H.J. Lu Date: Wed, 23 May 2007 15:25:16 +0000 (+0000) Subject: sse3-addsubpd.c: Don't include stdlib.h nor i386-cpuid.h. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d8aad9734b20ea9a6f40982c87766c0dc055b70;p=platform%2Fupstream%2Fgcc.git sse3-addsubpd.c: Don't include stdlib.h nor i386-cpuid.h. 2007-05-23 H.J. Lu * 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. From-SVN: r124994 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bf55581..d8be89d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,39 @@ +2007-05-23 H.J. Lu + + * 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. + 2007-05-22 Andrew Pinski PR middle-end/31095 diff --git a/gcc/testsuite/gcc.target/i386/sse3-addsubpd.c b/gcc/testsuite/gcc.target/i386/sse3-addsubpd.c index 9906239..40cc6e8 100644 --- a/gcc/testsuite/gcc.target/i386/sse3-addsubpd.c +++ b/gcc/testsuite/gcc.target/i386/sse3-addsubpd.c @@ -1,24 +1,9 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse3" } */ -#include -#include -#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 static void sse3_test_addsubpd (double *i1, double *i2, double *r) diff --git a/gcc/testsuite/gcc.target/i386/sse3-addsubps.c b/gcc/testsuite/gcc.target/i386/sse3-addsubps.c index 6c45af1..b5d3f72 100644 --- a/gcc/testsuite/gcc.target/i386/sse3-addsubps.c +++ b/gcc/testsuite/gcc.target/i386/sse3-addsubps.c @@ -1,24 +1,9 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse3" } */ -#include -#include -#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 static void sse3_test_addsubps (float *i1, float *i2, float *r) diff --git a/gcc/testsuite/gcc.target/i386/sse3-check.h b/gcc/testsuite/gcc.target/i386/sse3-check.h new file mode 100644 index 0000000..120c3e6 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/sse3-check.h @@ -0,0 +1,19 @@ +#include + +#include "../../gcc.dg/i386-cpuid.h" + +static void sse3_test (void); + +int +main () +{ + unsigned long cpu_facilities; + + cpu_facilities = i386_cpuid_ecx (); + + /* Run SSE3 test only if host has SSE3 support. */ + if ((cpu_facilities & bit_SSE3)) + sse3_test (); + + exit (0); +} diff --git a/gcc/testsuite/gcc.target/i386/sse3-haddpd.c b/gcc/testsuite/gcc.target/i386/sse3-haddpd.c index a85f3b3..d8fe5b1 100644 --- a/gcc/testsuite/gcc.target/i386/sse3-haddpd.c +++ b/gcc/testsuite/gcc.target/i386/sse3-haddpd.c @@ -1,24 +1,9 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse3" } */ -#include -#include -#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 static void sse3_test_haddpd (double *i1, double *i2, double *r) diff --git a/gcc/testsuite/gcc.target/i386/sse3-haddps.c b/gcc/testsuite/gcc.target/i386/sse3-haddps.c index 2914b38..feab14a 100644 --- a/gcc/testsuite/gcc.target/i386/sse3-haddps.c +++ b/gcc/testsuite/gcc.target/i386/sse3-haddps.c @@ -1,24 +1,9 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse3" } */ -#include -#include -#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 static void sse3_test_haddps (float *i1, float *i2, float *r) diff --git a/gcc/testsuite/gcc.target/i386/sse3-hsubpd.c b/gcc/testsuite/gcc.target/i386/sse3-hsubpd.c index fcb1e9a..841950a 100644 --- a/gcc/testsuite/gcc.target/i386/sse3-hsubpd.c +++ b/gcc/testsuite/gcc.target/i386/sse3-hsubpd.c @@ -1,24 +1,9 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse3" } */ -#include -#include -#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 static void sse3_test_hsubpd (double *i1, double *i2, double *r) diff --git a/gcc/testsuite/gcc.target/i386/sse3-hsubps.c b/gcc/testsuite/gcc.target/i386/sse3-hsubps.c index e3b6327..f4a67370 100644 --- a/gcc/testsuite/gcc.target/i386/sse3-hsubps.c +++ b/gcc/testsuite/gcc.target/i386/sse3-hsubps.c @@ -1,24 +1,9 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse3" } */ -#include -#include -#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 static void sse3_test_hsubps (float *i1, float *i2, float *r) diff --git a/gcc/testsuite/gcc.target/i386/sse3-lddqu.c b/gcc/testsuite/gcc.target/i386/sse3-lddqu.c index 45c63e4..294ff0e 100644 --- a/gcc/testsuite/gcc.target/i386/sse3-lddqu.c +++ b/gcc/testsuite/gcc.target/i386/sse3-lddqu.c @@ -1,24 +1,9 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse3" } */ -#include -#include -#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 static void sse3_test_lddqu (double *i1, double *r) diff --git a/gcc/testsuite/gcc.target/i386/sse3-movddup.c b/gcc/testsuite/gcc.target/i386/sse3-movddup.c index 96641c6..0ceb3f5 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 -#include -#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 static void sse3_test_movddup_mem (double *i1, double *r) diff --git a/gcc/testsuite/gcc.target/i386/sse3-movshdup.c b/gcc/testsuite/gcc.target/i386/sse3-movshdup.c index 88d4125..62bd9eb 100644 --- a/gcc/testsuite/gcc.target/i386/sse3-movshdup.c +++ b/gcc/testsuite/gcc.target/i386/sse3-movshdup.c @@ -1,24 +1,9 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse3" } */ -#include -#include -#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 static void sse3_test_movshdup_reg (float *i1, float *r) diff --git a/gcc/testsuite/gcc.target/i386/sse3-movsldup.c b/gcc/testsuite/gcc.target/i386/sse3-movsldup.c index a3128ad..42d4786 100644 --- a/gcc/testsuite/gcc.target/i386/sse3-movsldup.c +++ b/gcc/testsuite/gcc.target/i386/sse3-movsldup.c @@ -1,24 +1,9 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse3" } */ -#include -#include -#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 static void sse3_test_movsldup_reg (float *i1, float *r) diff --git a/gcc/testsuite/gcc.target/i386/ssse3-check.h b/gcc/testsuite/gcc.target/i386/ssse3-check.h new file mode 100644 index 0000000..41f46f9 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/ssse3-check.h @@ -0,0 +1,19 @@ +#include + +#include "../../gcc.dg/i386-cpuid.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 (); + + exit (0); +} diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pabsb.c b/gcc/testsuite/gcc.target/i386/ssse3-pabsb.c index c5b67f1..87dd6fa 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-pabsb.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-pabsb.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pabsd.c b/gcc/testsuite/gcc.target/i386/ssse3-pabsd.c index 75a0656..09880b7 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-pabsd.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-pabsd.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pabsw.c b/gcc/testsuite/gcc.target/i386/ssse3-pabsw.c index bc06904..53df7ce 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-pabsw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-pabsw.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-palignr.c b/gcc/testsuite/gcc.target/i386/ssse3-palignr.c index 7ec58f1..eb4bb94 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-palignr.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-palignr.c @@ -1,27 +1,12 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#include -#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 +#include /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phaddd.c b/gcc/testsuite/gcc.target/i386/ssse3-phaddd.c index 575ff11..00b45c8 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phaddd.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phaddd.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phaddsw.c b/gcc/testsuite/gcc.target/i386/ssse3-phaddsw.c index 10d3e47..8efcf3a 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phaddsw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phaddsw.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phaddw.c b/gcc/testsuite/gcc.target/i386/ssse3-phaddw.c index c7197c4..9437c6c 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phaddw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phaddw.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phsubd.c b/gcc/testsuite/gcc.target/i386/ssse3-phsubd.c index f640b40..dd24a3e 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phsubd.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phsubd.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phsubsw.c b/gcc/testsuite/gcc.target/i386/ssse3-phsubsw.c index 80dc959..bf4ad26 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phsubsw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phsubsw.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phsubw.c b/gcc/testsuite/gcc.target/i386/ssse3-phsubw.c index 67a01c0..dd7ccd9 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phsubw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phsubw.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c b/gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c index d340848..6f1e2a3 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 -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pmulhrsw.c b/gcc/testsuite/gcc.target/i386/ssse3-pmulhrsw.c index 7aa5775..d7bbaf9 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-pmulhrsw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-pmulhrsw.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pshufb.c b/gcc/testsuite/gcc.target/i386/ssse3-pshufb.c index 96cd90b..c38b146 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-pshufb.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-pshufb.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-psignb.c b/gcc/testsuite/gcc.target/i386/ssse3-psignb.c index 193070f..727b212 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-psignb.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-psignb.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-psignd.c b/gcc/testsuite/gcc.target/i386/ssse3-psignd.c index 706be97..0a63c4d 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-psignd.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-psignd.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void diff --git a/gcc/testsuite/gcc.target/i386/ssse3-psignw.c b/gcc/testsuite/gcc.target/i386/ssse3-psignw.c index a36be77..efe8877 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-psignw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-psignw.c @@ -1,26 +1,11 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ssse3 } */ /* { dg-options "-O2 -mssse3" } */ -#include -#include -#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 /* Test the 64-bit form */ static void