This is the mail archive of the gcc-bugs@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]

[Bug target/40697] inefficient code to extract least bits from an integer value



------- 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


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