------- Comment #3 from steven at gcc dot gnu dot org 2010-08-06 23:17 ------- Related to PR17886, where it says that: "gcc can detect the (x << y)|(x >> (bitwidth-y)) idiom for rotate and convert it into the machine rotate instruction. But it only works when y is a constant and is not long long." But apparently even this case is not detected anymore.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45216