instcombine: Migrate ffs* optimizations