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 rtl-optimization/34522] inefficient code for long long multiply when only low bits are needed



------- Comment #7 from bonzini at gnu dot org  2008-03-12 12:50 -------
The expand patch does not bootstrap, even with the tweaks Jakub suggested.

I'm also hesitant to fold it on the tree level because it's actually undefined
code unless -fwrapv.  For example if a = b = 65536LL,

 (int) a * (int) b = undefined
 (int) (a * b) = (int) (1LL << 32) = 0


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34522


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