You can either tell LLVM you're using a specific rounding mode other than the standard one, or ask LLVM to produce code that works regardless of the rounding mode (at the cost of killing all floating point optimizations). The latter is what FENV_ACCESS does in C.