diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2007-05-23 15:25:16 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2007-05-23 08:25:16 -0700 |
commit | 8d8aad9734b20ea9a6f40982c87766c0dc055b70 (patch) | |
tree | 6512453f41de340ecba2fbdb722034a7a4ae4735 /gcc/testsuite | |
parent | 7e25695e8c916edb4e51bf1da21d45c48a2de362 (diff) | |
download | gcc-8d8aad9734b20ea9a6f40982c87766c0dc055b70.zip gcc-8d8aad9734b20ea9a6f40982c87766c0dc055b70.tar.gz gcc-8d8aad9734b20ea9a6f40982c87766c0dc055b70.tar.bz2 |
sse3-addsubpd.c: Don't include stdlib.h nor i386-cpuid.h.
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.
From-SVN: r124994
Diffstat (limited to 'gcc/testsuite')
29 files changed, 143 insertions, 459 deletions
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 <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. + 2007-05-22 Andrew Pinski <andrew_pinski@playstation.sony.com> 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 <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_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 <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_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 <stdlib.h> + +#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 <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_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 <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_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 <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_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 <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_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 <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_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 <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) 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 <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_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 <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_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 <stdlib.h> + +#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 <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 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 <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 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 <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 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 <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 (); - /* 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 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 <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 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 <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 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 <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 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 <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 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 <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 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 <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 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 <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 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 <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 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 <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 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 <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 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 <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 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 <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 |