]> git.ipfire.org Git - thirdparty/gcc.git/commit
s390: Allow 5+ argument tail-calls in some -m31 -mzarch special cases [PR119873]
authorJakub Jelinek <jakub@redhat.com>
Fri, 25 Apr 2025 12:42:01 +0000 (14:42 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 25 Apr 2025 12:42:01 +0000 (14:42 +0200)
commit3d156c9e9bdaf351f77e3348b7d0d75e08f65580
tree897955083b71d11612afc11f4033116bec95e1c5
parente59ddd33242cf7fe02be9025c052c880f74c615b
s390: Allow 5+ argument tail-calls in some -m31 -mzarch special cases [PR119873]

Here is a patch to handle the PARALLEL case too.
I think we can just use rtx_equal_p there, because it will always use
SImode in the EXPR_LIST REGs in that case.

2025-04-25  Jakub Jelinek  <jakub@redhat.com>

PR target/119873
* config/s390/s390.cc (s390_call_saved_register_used): Don't return
true if default definition of PARM_DECL SSA_NAME of the same register
is passed in call saved register in the PARALLEL case either.

* gcc.target/s390/pr119873-5.c: New test.
gcc/config/s390/s390.cc
gcc/testsuite/gcc.target/s390/pr119873-5.c [new file with mode: 0644]