Rathish C <Rathish.C@xxxxxxxxxxxxxxx> writes: > I have one more doubt. Is there any way to obtain the following behavior? > > * By default the libgcc routines should be used. > * If we specify the option say -msoft-fp during compilation, then the > soft-fp routines should be used instead of default libgcc routines. > > I have done the modifications to support the "-msoft-fp" option. > Please suggest how to proceed further. Change the instruction predicates for your hard floating point define_insn patterns so that they are not recognized if your option is used. E.g., referring back to rs6000, see the use of TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT in rs6000.md. Ian