S/390: Add support for z13 instructions lochi and locghi.
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Mon, 4 Jul 2016 14:25:22 +0000 (14:25 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Mon, 4 Jul 2016 14:25:22 +0000 (14:25 +0000)
commitbf7499197fbb065123257c374064f6bb715c951b
tree92b00ae746adb67fef8e83316aacddbee9caf653
parent4fc0c9c844bcc61de8642f9a31c0144c15d9f822
S/390: Add support for z13 instructions lochi and locghi.

The attached patch adds patterns to make use of the z13 LOCHI and
LOCGHI instructions.

gcc/ChangeLog:

2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>

* config/s390/s390.md: Add "z13" cpu_facility.
("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
* config/s390/predicates.md ("loc_operand"): New predicate for "load on
condition" type instructions.

gcc/testsuite/ChangeLog:

2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>

* gcc.target/s390/vector/vec-scalar-cmp-1.c: Expect lochi instead
of locr.
* gcc.target/s390/loc-1.c: New test.

From-SVN: r237984
gcc/ChangeLog
gcc/config/s390/predicates.md
gcc/config/s390/s390.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/loc-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/vector/vec-scalar-cmp-1.c