IBM Z: Define probe_stack expander
authorAndreas Krebbel <krebbel@linux.ibm.com>
Thu, 14 May 2020 06:16:27 +0000 (08:16 +0200)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Thu, 14 May 2020 06:16:27 +0000 (08:16 +0200)
commit0473885be8b2a7aa0d5064a16c004116162f473f
tree622f63b224d544c7b07834cab5bfe023336c5214
parent868d351e232371eec4b40e83014a617d0d46f985
IBM Z: Define probe_stack expander

Probes emitted by the common code routines still use a store.  Define
the "probe_stack" pattern to use a compare instead.

gcc/ChangeLog:

2020-05-14  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/s390.c (s390_emit_stack_probe): Call the probe_stack
expander.
* config/s390/s390.md ("@probe_stack2<mode>", "probe_stack"): New
expanders.

gcc/testsuite/ChangeLog:

2020-05-14  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.target/s390/stack-clash-2.c: New test.
gcc/ChangeLog
gcc/config/s390/s390.c
gcc/config/s390/s390.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/stack-clash-2.c [new file with mode: 0644]