This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Which POWER implementations need the HWCAP_DFP check?
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Cc: Tulio Magno Quites Machado Filho <tuliom at linux dot vnet dot ibm dot com>
- Date: Mon, 14 May 2018 11:42:03 +0200
- Subject: Which POWER implementations need the HWCAP_DFP check?
I think this run-time check is unnecessary on POWER6 and later:
double d = (env); \
if(GLRO(dl_hwcap) & PPC_FEATURE_HAS_DFP) \
asm volatile (".machine push; " \
".machine \"power6\"; " \
"mtfsf 0xff,%0,1,0; " \
".machine pop" : : "f" (d)); \
else \
asm volatile ("mtfsf 0xff,%0" : : "f" (d)); \
In particularly, we do not need it on ppc64le. Correct?
It's one of the GLIBC_PRIVATE references in libm.so.6, which is why I'm
asking.
Thanks,
Florian