[PATCH][ARM] Adjust arith_shiftsi for ARMv8-style

Kyrill Tkachov kyrylo.tkachov@arm.com
Thu May 15 08:47:00 GMT 2014


Hi all,

Shifted arithmetic operations can never be encoded in 16-bits in and therefore 
can not appear in Thumb2 IT blocks under ARMv8-A rules (and the -mrestrict-it 
rules). This patch adjusts the relevant pattern for that purpose.

Tested and bootstrapped on arm-none-linux-gnueabihf and made sure no performance 
regressions on a number of benchmarks.

This is a bug (not wrong-code though) in -mrestrict-it that affects 4.9 as well 
as trunk, so is it ok to backport it there?


Thanks,
Kyrill

2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * config/arm/arm.md (arith_shiftsi): Do not predicate for
     arm_restrict_it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm-arith-shiftsi.patch
Type: text/x-patch
Size: 597 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140515/b5bb8980/attachment.bin>


More information about the Gcc-patches mailing list