* lib/target-supports.exp (check_avx_hw_available): New procedure.
commit9704d177a19e24211c50b0a8a6e8c231091e1012
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Jul 2010 11:33:19 +0000 (23 11:33 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Jul 2010 11:33:19 +0000 (23 11:33 +0000)
tree864361e650ba529aa3cdf3faf3469f92fb3c0727
parent4efe5044ae78d6599df7917fcbcbc807b020ee2e
* lib/target-supports.exp (check_avx_hw_available): New procedure.
(check_effective_target_avx_runtime): New procedure.
(check_effective_target_sse2_runtime): Add check_effective_target_sse2.
(check_effective_target_sse_runtime): Add check_effective_target_sse.

* gcc.dg/compat/pr38736_main.c: Use avx_runtime effective target.
* gcc.dg/compat/vector-1b_main.c: Ditto.  Remove cpuid.h include
and __get_cpuid test.
* gcc.dg/compat/vector-2b_main.c: Ditto.

* gcc.target/i386/avx-check.h (main): Also check bit_OSXSAVE.

* gcc.dg/20020418-1.c: Do not require sse2 effective target
for compile-time only test.
* gcc.dg/pr32716.c: Ditto.
* gcc.dg/pr34856.c: Ditto.
* gcc.dg/pr36997.c: Ditto.
* gcc.dg/prefetch-loop-arrays-1.c: Ditto.
* gfortran.dg/pr28158.f90: Ditto.
* gfortran.dg/pr30667.f: Ditto.

* gcc.dg/vect/vect.exp: Use check_effective_target_sse2_runtime for
i?86-*-* and x86_64-*-* targets to disable execution on targets
without sse2 runtime support.
* g++.dg/vect/vect.exp: Ditto.
* gfortran.dg/vect/vect.exp: Ditto.

* gcc.dg/pr36584.c: Remove now redundant sse2 effective target check.
* gcc.dg/pr37544.c: Ditto.
* gcc.dg/pr40550.c: Ditto.
* gcc.dg/compat/union-m128-1_main.c: Ditto.
* gcc.dg/compat/vector-1a_main.c: Ditto.
* gcc.dg/compat/vector-2a_main.c: Ditto.
* gcc.dg/torture/pr16104-1.c: Ditto.
* gcc.dg/torture/pr35771-1.c: Ditto.
* gcc.dg/torture/pr35771-2.c: Ditto.
* gcc.dg/torture/pr35771-3.c: Ditto.
* gcc.dg/torture/stackalign/alloca-2.c: Ditto.
* gcc.dg/torture/stackalign/alloca-3.c: Ditto.
* gcc.dg/torture/stackalign/push-1.c: Ditto.
* gcc.dg/torture/stackalign/vararg-3.c: Ditto.
* g++.dg/other/i386-1.C: Ditto.
* g++.dg/other/pr40446.C: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162456 138bc75d-0d04-0410-961f-82ee72b054a4
32 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/i386-1.C
gcc/testsuite/g++.dg/other/pr40446.C
gcc/testsuite/g++.dg/vect/vect.exp
gcc/testsuite/gcc.dg/20020418-1.c
gcc/testsuite/gcc.dg/compat/pr38736_main.c
gcc/testsuite/gcc.dg/compat/union-m128-1_main.c
gcc/testsuite/gcc.dg/compat/vector-1a_main.c
gcc/testsuite/gcc.dg/compat/vector-1b_main.c [copied from gcc/testsuite/gcc.dg/compat/vector-1a_main.c with 63% similarity]
gcc/testsuite/gcc.dg/compat/vector-2a_main.c
gcc/testsuite/gcc.dg/compat/vector-2b_main.c [copied from gcc/testsuite/gcc.dg/compat/vector-2a_main.c with 64% similarity]
gcc/testsuite/gcc.dg/pr32176.c
gcc/testsuite/gcc.dg/pr34856.c
gcc/testsuite/gcc.dg/pr36584.c
gcc/testsuite/gcc.dg/pr36997.c
gcc/testsuite/gcc.dg/pr37544.c
gcc/testsuite/gcc.dg/pr40550.c
gcc/testsuite/gcc.dg/prefetch-loop-arrays-1.c
gcc/testsuite/gcc.dg/torture/pr16104-1.c
gcc/testsuite/gcc.dg/torture/pr35771-1.c
gcc/testsuite/gcc.dg/torture/pr35771-2.c
gcc/testsuite/gcc.dg/torture/pr35771-3.c
gcc/testsuite/gcc.dg/torture/stackalign/alloca-2.c
gcc/testsuite/gcc.dg/torture/stackalign/alloca-3.c
gcc/testsuite/gcc.dg/torture/stackalign/push-1.c
gcc/testsuite/gcc.dg/torture/stackalign/vararg-3.c
gcc/testsuite/gcc.dg/vect/vect.exp
gcc/testsuite/gcc.target/i386/avx-check.h
gcc/testsuite/gfortran.dg/pr28158.f90
gcc/testsuite/gfortran.dg/pr30667.f
gcc/testsuite/gfortran.dg/vect/vect.exp
gcc/testsuite/lib/target-supports.exp