[PATCH] D82525: [FPEnv] Intrinsics for access to FP control modes
Serge Pavlov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 9 23:49:56 PDT 2023
sepavloff added a comment.
In D82525#4425234 <https://reviews.llvm.org/D82525#4425234>, @arsenm wrote:
> Can this be abandoned with get_fpenv / set_fpenv already pushed?
These are different intrinsics, and they correspond to different C functions. Control modes are a part of FP environment, but the latter contains also status bits. If a target has single FP status and control register, both `fegetenv` and `fegetmode` are implemented as reading from that register in glibc, but in `fegetmode` bits not related to control modes are cleared. If a target have different status and control registers, or FP environment is large in size (as on X86), `get_fpmode`/`set_fpmode` can be have faster implementation than `get_fpenv`/`set_fpenv`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82525/new/
https://reviews.llvm.org/D82525
More information about the llvm-commits
mailing list