http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50849
vincenzo Innocente <vincenzo.innocente at cern dot ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #2 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2011-10-24 11:55:14 UTC --- Thanks for the fast feedback. I used long long and for right shift gcc generates an arithmetic one. with unsigned long long it generates psrlq. sorry for the noise.