This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/16576] PowerPC: glibc attempts to use fsqrt instruction on processors that do not implement it
- From: "joseph at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 13 Feb 2014 17:32:03 +0000
- Subject: [Bug math/16576] PowerPC: glibc attempts to use fsqrt instruction on processors that do not implement it
- Auto-submitted: auto-generated
- References: <bug-16576-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=16576
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
The correct compile-time test is _ARCH_PPCSQ (that's based on the same
condition GCC uses to decide whether to generate fsqrt instructions
itself). Not __WORDSIZE == 64, not _ARCH_PWR4.
Has Freescale (or anyone else) added an HWCAP / HWCAP2 bit to the kernel
to indicate whether fsqrt is available at runtime? That's what's needed
for any correct runtime probe (as opposed to the present incorrect probe
based on PPC_FEATURE_64).
--
You are receiving this mail because:
You are on the CC list for the bug.