IBM Z: Fix testsuite useable_hw check
commitd8e5ca292046561482b3aad266b1ac1558c9bd95
authorAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 5 Nov 2019 13:27:59 +0000 (5 13:27 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 5 Nov 2019 13:27:59 +0000 (5 13:27 +0000)
tree21d59ec37757d323bd1c84e7bfe372dbf1d5ef33
parent76d8b4d1ada1d9a6c1408b9b94b0baa31d1f3c0c
IBM Z: Fix testsuite useable_hw check

This fixes various issues with the useable_hw check in s390.exp.  The
check is supposed to verify whether a testcase can be run on the
current hardware.

- the test never returned true for -m31 because vzero is not available
  in ESA mode and -m31 defaults to -mesa
- the missing v0 clobber on the vzero instruction made the check fail
  if the stack pointer got saved in f0
- the lcbb instruction used for checking whether we are on a z13
  also requires vx.  Replace it with an instruction from the generic
  instruction set extensions.
- no support for z14 and z15 so far

gcc/testsuite/ChangeLog:

2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.target/s390/s390.exp
(check_effective_target_s390_useable_hw): Add inline asm for z14
and z15. Replace instruction for z13 with lochiz. Add register
clobbers. Check also for __zarch__ when doing the __VX__ test.

From-SVN: r277830
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/s390.exp