shift/mask operations on long long like (x << 8) | ((y >> 48) & 0xffull) could be further optimized for x86. Please see comments in the attached test case (posted earlier in PR 17886).
-- Summary: long long shift/mask operations should be better optimized Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tkho at ucla dot edu GCC host triplet: i686-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24929