[PATCH PR78691]Require integral type for pattern ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c))

Bin Cheng Bin.Cheng@arm.com
Tue Dec 6 11:02:00 GMT 2016


Hi,
This patch fixes ICE reported by PR78691, it adds requirement of integral type for the outer
expression of pattern ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)).
Test case checked on ppc, bootstrap and test on x86_64 ongoing, is it OK if no new failure?

Thanks,
bin

2016-12-06  Bin Cheng  <bin.cheng@arm.com>

	PR tree-optimization/78691
	* match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
	Require integral type for the outer expression.

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

	PR tree-optimization/78691
	* gcc.target/i386/pr78691-i386.c: New test.
	* gcc.target/powerpc/pr78691-ppc.c: New test.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr78691-20161206.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161206/1b3a4251/attachment.txt>


More information about the Gcc-patches mailing list