This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Attachment: minmax_canon_minus.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]