At today's friam, Kevin stated that changing floating point rounding modes was dangerous because of compiler optimizations. I found that hard to believe. Even such a common optimization as reordering operations can change the answer you get.
I asked Perplexity (the AI I've found to be the least likely to hallucinate). It said, "Compilers generally avoid changing the value of floating‑point expressions unless explicitly allowed," and, "in strict/precise modes compilers are restricted to optimizations that are provably value‑preserving for all inputs."
It pointed out that compilers have options, such as fast-math, that you can use to get the optimizations.