public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* Detecting support for trapping floating-point exceptions on ARM
@ 2012-06-12 19:11 Joseph S. Myers
  2012-06-27 17:58 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph S. Myers @ 2012-06-12 19:11 UTC (permalink / raw)
  To: libc-ports, linux-arm-kernel

ARM VFPv3 and VFPv4 do not support trapping floating-point exceptions; 
VFPv2, VFPv3U and VFPv4U do.  The lack of support causes the glibc 
math/test-fenv test to fail on VFPv3 and VFPv4 systems.

The natural fix for that would be for fesetenv (FE_NOMASK_ENV) to fail on 
hardware not supporting trapping exceptions.  There is, however, no HWCAP 
bit to indicate whether trapping floating-point exceptions is supported.  
Could one be added to the kernel, or is there a good way fesetenv could 
detect this from userspace without a new HWCAP bit?

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-27 19:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-12 19:11 Detecting support for trapping floating-point exceptions on ARM Joseph S. Myers
2012-06-27 17:58 ` Richard Henderson
2012-06-27 19:17   ` Joseph S. Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).