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

2013-08-01 Thread Richard Earnshaw
On 01/08/13 14:05, Kyrylo Tkachov wrote: 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, w

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

2013-08-01 Thread Kyrylo Tkachov
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? Th