[clang] [llvm] [AMDGPU] Implement 'llvm.get.fpenv' and 'llvm.set.fpenv' (PR #83906)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 5 07:37:36 PST 2024


================
@@ -6826,6 +6826,10 @@ def warn_floatingpoint_eq : Warning<
   "comparing floating point with == or != is unsafe">,
   InGroup<DiagGroup<"float-equal">>, DefaultIgnore;
 
+def warn_fenv_access : Warning<
+  "floating point environment access without #pragma STDC FENV_ACCESS set ON">,
+  InGroup<DiagGroup<"float-env">>;
----------------
arsenm wrote:

this should be a separate patch (and ideally would cover the range of standard fenv access functions)

https://github.com/llvm/llvm-project/pull/83906


More information about the cfe-commits mailing list