Only emit fdiv/fsqrt if -mfdiv is specified

No implementations we're aware of bake these into HW, so this is faster.
Improve cost model for generating integer constants