[PATCH][ARM] Emit canonical form for constant subtraction in minmax_arithsi_non_canon

Kyrylo Tkachov kyrylo.tkachov@arm.com
Thu Aug 1 13:06:00 GMT 2013


Hi all,

I noticed that the minmax_arithsi_non_canon splitter had a case where it would
generate a MINUS rtx with an immediate. The canonical form is PLUS with
negated immediate. This patch fixes that.

Tested arm-none-eabi on qemu with ARMv7-a, ARMv8-a, with and without -mthumb.

Ok for trunk?

Thanks,
Kyrill


2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical RTL
form
	when subtracting a constant.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minmax_canon_minus.patch
Type: application/octet-stream
Size: 975 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130801/ddaa18eb/attachment.obj>


More information about the Gcc-patches mailing list