S/390: arch13: Add support for new select instruction
commit618eef38d9d18342930fbc960e5b9c23e6185b40
authorAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 2 Apr 2019 10:56:34 +0000 (2 10:56 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 2 Apr 2019 10:56:34 +0000 (2 10:56 +0000)
treea85200bc3e00744ce9ca305c63f09d3a9f8c6ef4
parent25cb5165c1e49499c8c6e0088d135bd54cb7106f
S/390: arch13: Add support for new select instruction

Compared to the load on condition instructions we already have the new
select instruction allows to have a THEN and and ELSE source operand -
but only for register to register loads.

gcc/ChangeLog:

2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
if-then-else constructs if we can use the select instruction.
* config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.

gcc/testsuite/ChangeLog:

2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.target/s390/arch13/sel-1.c: New test.

From-SVN: r270080
gcc/ChangeLog
gcc/config/s390/s390.c
gcc/config/s390/s390.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/arch13/sel-1.c [new file with mode: 0644]