Replace fp instructions