On Sat, Jul 13, 2019 at 09:53:44AM +0530, Faisal Riyaz wrote: You'll have to do something like > (define_insn "modfloatmul<mode>" and then expand with if (<MODE>mode == SFmode) gen_modfloatmulsf (operands[0], operands[1], operands[2]); else if (<MODE>mode == DFmode) gen_modfloatmuldf (operands[0], operands[1], operands[2]); else gcc_unreachable (); Segher