[PATCH GCC][3/4]Add support for constant operand in pattern (convert (op:s (convert@2 @0) (convert?@3 @1)))

Bin Cheng Bin.Cheng@arm.com
Tue Oct 25 11:22:00 GMT 2016


Hi,
This is an update patch for https://gcc.gnu.org/ml/gcc-patches/2016-10/msg00738.html .  In this version, existing pattern (convert (op:s (convert@2 @0) (convert?@3 @1))) is extended.  It allows narrowing of arithmetic operation which has constant integer as its second operand.  It also simplifies next patch handling cond_expr.
Bootstrap and test on x86_64 and AArch64 for whole patch set.  Is it OK?

Thanks,
bin

2016-10-21  Bin Cheng  <bin.cheng@arm.com>

	* match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
	support for constant operand for OP.

gcc/testsuite/ChangeLog
2016-10-21  Bin Cheng  <bin.cheng@arm.com>

	* gcc.dg/fold-narrowbopcst-1.c: New test.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 03-simplify-narrowbopcst-20161020.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161025/23bf4f18/attachment.txt>


More information about the Gcc-patches mailing list