re PR target/63312 (FAIL: gcc.dg/torture/float128-exact-underflow.c -O0 execution...
authorJoseph Myers <joseph@codesourcery.com>
Mon, 22 Sep 2014 11:08:03 +0000 (12:08 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 22 Sep 2014 11:08:03 +0000 (12:08 +0100)
PR target/63312
* config/ia64/sfp-machine.h (FE_EX_ALL, FP_TRAPPING_EXCEPTIONS):
New macros.

From-SVN: r215458

libgcc/ChangeLog
libgcc/config/ia64/sfp-machine.h

index 7c7d96509f0b9eb01b40558479c310fc5222f32e..9eb57755b8fa3d1cfcc3a10759d4adb03838586d 100644 (file)
@@ -1,3 +1,9 @@
+2014-09-22  Joseph Myers  <joseph@codesourcery.com>
+
+       PR target/63312
+       * config/ia64/sfp-machine.h (FE_EX_ALL, FP_TRAPPING_EXCEPTIONS):
+       New macros.
+
 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
 
        * crtstuff.c (USE_EH_FRAME_REGISTRY): Let USE_EH_FRAME_REGISTRY_ALWAYS
index 0769fc67c751cbf16b252fbd68cdfc57eb31ccae..45e844d3daa6dba3e258d43e99fec2b4a2ccc3fa 100644 (file)
@@ -56,6 +56,9 @@ typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__)));
 #define FP_EX_OVERFLOW         0x08
 #define FP_EX_UNDERFLOW                0x10
 #define FP_EX_INEXACT          0x20
+#define FP_EX_ALL \
+       (FP_EX_INVALID | FP_EX_DENORM | FP_EX_DIVZERO | FP_EX_OVERFLOW \
+        | FP_EX_UNDERFLOW | FP_EX_INEXACT)
 
 #define _FP_TININESS_AFTER_ROUNDING 1
 
@@ -67,6 +70,8 @@ void __sfp_handle_exceptions (int);
       __sfp_handle_exceptions (_fex);          \
   } while (0);
 
+#define FP_TRAPPING_EXCEPTIONS (~_fcw & FP_EX_ALL)
+
 #define FP_RND_NEAREST         0
 #define FP_RND_ZERO            0xc00L
 #define FP_RND_PINF            0x800L