It is slightly different in that the TBM version takes a i32 immediate but the BMI version takes a register argument. Although sharing some codes should be possible. http://llvm-reviews.chandlerc.com/D1788