Run tests only if the machine supports the instruction set.
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Thu, 22 Dec 2016 14:46:46 +0000 (14:46 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Thu, 22 Dec 2016 14:46:46 +0000 (14:46 +0000)
commitcbbb9dabbb498b27ca4cf7337a7c8aa013498bb0
tree90e366ab002fef48ff08fe6cc4eef5afa99f265a
parenta71dcca81e3bdc9b387a6c6d1496f1f1d414f3d7
Run tests only if the machine supports the instruction set.

gcc/ChangeLog:

2016-12-22  Dominik Vogt  <vogt@linux.vnet.ibm.com>

* config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
__S390_ARCH_LEVEL__.

gcc/testsuite/ChangeLog:

2016-12-22  Dominik Vogt  <vogt@linux.vnet.ibm.com>

* gcc.target/s390/md/setmem_long-1.c: Use "s390_useable_hw".
* gcc.target/s390/md/rXsbg_mode_sXl.c: Likewise.
* gcc.target/s390/md/andc-splitter-1.c: Likewise.
* gcc.target/s390/md/andc-splitter-2.c: Likewise.
* lib/gcc-dg.exp (gcc-dg-runtest): Export torture_current_flags.
* gcc.target/s390/s390.exp: Import torture_current_flags.
(check_effective_target_s390_useable_hw): New.
(check_effective_target_s390_z900_hw): New.
(check_effective_target_s390_z990_hw): New.
(check_effective_target_s390_z9_ec_hw): New.
(check_effective_target_s390_z10_hw): New.
(check_effective_target_s390_z196_hw): New.
(check_effective_target_s390_zEC12_hw): New.
(check_effective_target_s390_z13_hw): New.
(check_effective_target_z10_instructions): Removed.
(torture tests): Add optimization level without -march=.
Reorder torture tests for good cache usage.

From-SVN: r243887
gcc/ChangeLog
gcc/config/s390/s390-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/md/andc-splitter-1.c
gcc/testsuite/gcc.target/s390/md/andc-splitter-2.c
gcc/testsuite/gcc.target/s390/md/rXsbg_mode_sXl.c
gcc/testsuite/gcc.target/s390/md/setmem_long-1.c
gcc/testsuite/gcc.target/s390/s390.exp
gcc/testsuite/lib/gcc-dg.exp