diff options
author | Manjunath Matti <mmatti@linux.ibm.com> | 2023-09-23 10:49:51 -0500 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-09-27 13:55:36 -0300 |
commit | 4eac1825ed92e88c192abb436412d5fb84ddd854 (patch) | |
tree | c10d2e6af5df5d050bdde4f085ba75f25f46b8e3 /nss/tst-nss-test5.c | |
parent | 551101e8240b7514fc646d1722f8b79c90362b8f (diff) | |
download | glibc-4eac1825ed92e88c192abb436412d5fb84ddd854.tar glibc-4eac1825ed92e88c192abb436412d5fb84ddd854.tar.gz glibc-4eac1825ed92e88c192abb436412d5fb84ddd854.tar.bz2 glibc-4eac1825ed92e88c192abb436412d5fb84ddd854.zip |
fegetenv_and_set_rn now uses the builtins provided by GCC.
On powerpc, SET_RESTORE_ROUND uses inline assembly to optimize the
prologue get/save/set rounding mode operations for POWER9 and
later by using 'mffscrn' where possible, this was introduced by
commit f1c56cdff09f650ad721fae026eb6a3651631f3d.
GCC version 14 onwards supports builtins as __builtin_set_fpscr_rn
which now returns the FPSCR fields in a double. This feature is
available on Power9 when the __SET_FPSCR_RN_RETURNS_FPSCR__ macro
is defined.
GCC commit ef3bbc69d15707e4db6e2f198c621effb636cc26 adds
this feature.
Changes are done to use __builtin_set_fpscr_rn instead of mffscrn
or mffscrni in __fe_mffscrn(rn).
Suggested-by: Carl Love <cel@us.ibm.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nss/tst-nss-test5.c')
0 files changed, 0 insertions, 0 deletions