[PATCH] S/390: Add splitter for "and" with complement.
Dominik Vogt
vogt@linux.vnet.ibm.com
Wed Apr 27 07:59:00 GMT 2016
The attached patch provides some improved patterns for "and with
complement" to the s390 machine description. Bootstrapped and
regression tested on s390 and s390x.
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany
-------------- next part --------------
gcc/ChangeLog
* config/s390/s390.h (REG_OR_SUBREG_P): New helper macro.
* config/s390/s390.c (s390_expand_logical_operator): Force operands
from memory into registers for expressions with register destination.
(s390_logical_operator_si3_ok_p)
(s390_andc_split_ok_p): New functions.
* config/s390/s390-protos.h (s390_logical_operator_si3_ok_p)
(s390_andc_split_ok_p): Add prototypes.
* config/s390/s390.md ("*andc_split", "*andc_split2"): New splitters
for and with complement.
("*andsi3_zarch", "*iorsi3_zarch", "xorsi3"): Call
s390_logical_operator_si3_ok_p.
gcc/testsuite/ChangeLog
* gcc.target/s390/md/andc-splitter-1.c: New test case.
* gcc.target/s390/md/andc-splitter-2.c: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-S-390-Add-splitter-for-and-with-complement.patch
Type: text/x-diff
Size: 11498 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160427/cfd07553/attachment.bin>
More information about the Gcc-patches
mailing list