* [PATCH 2/2] Update soft-fp from GLIBC
@ 2012-11-14 15:31 Marcus Shawcroft
2012-12-03 16:02 ` Marcus Shawcroft
0 siblings, 1 reply; 2+ messages in thread
From: Marcus Shawcroft @ 2012-11-14 15:31 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 261 bytes --]
This patch provides a definition of FP_TRAPPING_EXCEPTION for aarch64.
/Marcus
2012-11-14 Marcus Shawcroft <marcus.shawcroft@arm.com>
* config/aarch64/sfp-machine.h (FP_EX_ALL): Define.
(FP_EX_SHIFT): Define.
(FP_TRAPPING_EXCEPTIONS): Define.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0003-AArch64-FP_TRAPPING_EXCEPTIONS.patch --]
[-- Type: text/x-patch; name=0003-AArch64-FP_TRAPPING_EXCEPTIONS.patch, Size: 859 bytes --]
diff --git a/libgcc/config/aarch64/sfp-machine.h b/libgcc/config/aarch64/sfp-machine.h
index 6c56a92..52b6fb2 100644
--- a/libgcc/config/aarch64/sfp-machine.h
+++ b/libgcc/config/aarch64/sfp-machine.h
@@ -69,6 +69,10 @@ typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__)));
#define FP_EX_OVERFLOW 0x04
#define FP_EX_UNDERFLOW 0x08
#define FP_EX_INEXACT 0x10
+#define FP_EX_SHIFT 8
+#define FP_EX_ALL \
+ (FP_EX_INVALID | FP_EX_DIVZERO | FP_EX_OVERFLOW | FP_EX_UNDERFLOW \
+ | FP_EX_INEXACT)
void __sfp_handle_exceptions (int);
@@ -78,6 +82,8 @@ void __sfp_handle_exceptions (int);
__sfp_handle_exceptions (_fex); \
} while (0);
+#define FP_TRAPPING_EXCEPTIONS ((_fpcr >> FP_EX_SHIFT) & FP_EX_ALL)
+
#define FP_RND_NEAREST 0x000000
#define FP_RND_PINF 0x400000
#define FP_RND_MINF 0x800000
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] Update soft-fp from GLIBC
2012-11-14 15:31 [PATCH 2/2] Update soft-fp from GLIBC Marcus Shawcroft
@ 2012-12-03 16:02 ` Marcus Shawcroft
0 siblings, 0 replies; 2+ messages in thread
From: Marcus Shawcroft @ 2012-12-03 16:02 UTC (permalink / raw)
To: gcc-patches; +Cc: ian
PING
On 14 Nov 2012, at 15:31, Marcus Shawcroft <Marcus.Shawcroft@arm.com> wrote:
> This patch provides a definition of FP_TRAPPING_EXCEPTION for aarch64.
>
> /Marcus
>
> 2012-11-14 Marcus Shawcroft <marcus.shawcroft@arm.com>
>
> * config/aarch64/sfp-machine.h (FP_EX_ALL): Define.
> (FP_EX_SHIFT): Define.
> (FP_TRAPPING_EXCEPTIONS): Define.
> <0003-AArch64-FP_TRAPPING_EXCEPTIONS.patch>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-03 16:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-14 15:31 [PATCH 2/2] Update soft-fp from GLIBC Marcus Shawcroft
2012-12-03 16:02 ` Marcus Shawcroft
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).