[Bug target/40697] inefficient code to extract least bits from an integer value
bernds at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 16 10:56:00 GMT 2010
------- Comment #4 from bernds at codesourcery dot com 2010-03-16 10:56 -------
Created an attachment (id=20117)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20117&action=view)
A patch to fix it.
The andsi3 expander has code to do the right thing, but
avoid_expensive_constant prevents it from seeing the constant. This can be
fixed by tweaking the rtx_costs to detect the same cases as the expander.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40697
More information about the Gcc-bugs
mailing list