From f9efe5a375fd865c0da4ad345df36367a8777965 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Mon, 3 Feb 2025 03:07:33 +0000 Subject: [PATCH] [LangRef] Correct documentation for `roundeven` Langref for `roundeven` implies that the C standard function `roundeven` may raise floating point exceptions. However, this is not correct; C23 does not mention exceptions for `roundeven`, and per [1] `FE_INEXACT` is never raised. Clarify that LLVM's `roundeven` behaves the same. [1]: https://en.cppreference.com/w/c/numeric/math/roundeven --- llvm/docs/LangRef.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 8891aedcb58e5..bd9c522987834 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -17255,8 +17255,8 @@ Semantics: """""""""" This function implements IEEE-754 operation ``roundToIntegralTiesToEven``. It -also behaves in the same way as C standard function ``roundeven``, except that -it does not raise floating point exceptions. +also behaves in the same way as C standard function ``roundeven``, including +that it disregards rounding mode and does not raise floating point exceptions. '``llvm.lround.*``' Intrinsic