2012-12-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
* config/aarch64/sfp-machine.h (FP_EX_ALL): Define.
(FP_EX_SHIFT): Define.
(FP_TRAPPING_EXCEPTIONS): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194151
138bc75d-0d04-0410-961f-
82ee72b054a4
2012-12-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
+ * config/aarch64/sfp-machine.h (FP_EX_ALL): Define.
+ (FP_EX_SHIFT): Define.
+ (FP_TRAPPING_EXCEPTIONS): Define.
+
+2012-12-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
+
* config/aarch64/sfp-machine.h (FP_RND_MASK): Define.
(FP_ROUNDMODE): Use FP_RND_MASK.
* config/aarch64/sfp-exceptions.c: New.
#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);
__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