[flang-commits] [flang] [flang] Unsupported rounding modes (PR #128240)
via flang-commits
flang-commits at lists.llvm.org
Mon Feb 24 05:34:40 PST 2025
================
@@ -5450,13 +5450,33 @@ void IntrinsicLibrary::genIeeeSetRoundingMode(
llvm::ArrayRef<fir::ExtendedValue> args) {
// Set the current floating point rounding mode to the value of arg
// ROUNDING_VALUE. Values are llvm.get.rounding encoding values.
- // Generate an error if the value of optional arg RADIX is not 2.
+ // Modes ieee_to_zero, ieee_nearest, ieee_up, and ieee_down are supported.
+ // Modes ieee_away and ieee_other are not supported, and are treated as
+ // ieee_nearest. Generate an error if the optional RADIX arg is not 2.
----------------
jeanPerier wrote:
Can you document this for the user in Extension.md or Intrinsics.md? (not sure which document makes the most sense).
https://github.com/llvm/llvm-project/pull/128240
More information about the flang-commits
mailing list