The flag could be processor specific, but then I would expect it to inline the instruction no matter what. In the cos case, it only inlined it with -ffast-math, and otherwise did a full function call.