This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/16576] PowerPC: glibc attempts to use fsqrt instruction on processors that do not implement it


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]