]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* lib/target-supports.exp (check_effective_target_issignaling):
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jan 2016 19:53:25 +0000 (19:53 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jan 2016 19:53:25 +0000 (19:53 +0000)
New procedure.
* gcc.dg/pr61441.c: Require issignaling effective target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232381 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr61441.c
gcc/testsuite/lib/target-supports.exp

index 4d451af20d1b0a4286c7ad10b98c8ced64556fc0..38b96a6d48fe2b7f4efab79d81d3fc934cb5de63 100644 (file)
@@ -1,3 +1,9 @@
+2016-01-14  Uros Bizjak  <ubizjak@gmail.com>
+
+       * lib/target-supports.exp (check_effective_target_issignaling):
+       New procedure.
+       * gcc.dg/pr61441.c: Require issignaling effective target.
+
 2016-01-14  Segher Boessenkool  <segher@kernel.crashing.org>
 
        PR target/68803
index 5d642e86ce5707aa7a895d5944132068da2839be..1b0f1810d8a1cdc12e6794bb4251c0101b6c7197 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do run { target { *-*-linux* *-*-gnu* } } } */
 /* { dg-options "-O1 -lm -fexcess-precision=standard" } */
+/* { dg-require-effective-target issignaling } */
 
 #define _GNU_SOURCE
 #include <stdio.h>
index a930bd2aab590601c6e89ea7fe50c6c1136d82f0..94e0b05a20a724761ccdad75cd2dcd1915970794 100644 (file)
@@ -6287,8 +6287,19 @@ proc check_effective_target_pow10 { } {
     } "-lm" ]
 }
 
-# Return 1 if current options generate DFP instructions, 0 otherwise.
+# Return 1 if issignaling function exists.
+proc check_effective_target_issignaling {} {
+    return [check_runtime issignaling {
+       #define _GNU_SOURCE
+       #include <math.h>
+       int main ()
+       {
+         return issignaling (0.0);
+       }
+    } "-lm" ]
+}
 
+# Return 1 if current options generate DFP instructions, 0 otherwise.
 proc check_effective_target_hard_dfp {} {
     return [check_no_messages_and_pattern hard_dfp "!adddd3" assembly {
        typedef float d64 __attribute__((mode(DD)));