ARM patch: Fix PR 40697
Bernd Schmidt
bernds@codesourcery.com
Thu Mar 18 22:58:00 GMT 2010
The ARM andsi3 expander has code to detect a case where, when generating
Thumb1 code, we can perform an AND by a sequence of two shifts.
Unfortunately, this code never triggers, as avoid_expensive_constant in
optabs.c prevents the expander from ever seeing a constant.
Fixed by tweaking the rtx costs. Regression tested on arm-elf{,mthumb}.
Ok (possibly for 4.6)?
Bernd
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: thumb-andsi.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100318/b3c22230/attachment.ksh>
More information about the Gcc-patches
mailing list