Commit 19643948 by Uros Bizjak Committed by Uros Bizjak

target-supports.exp (check_effective_target_issignaling): New procedure.

	* lib/target-supports.exp (check_effective_target_issignaling):
	New procedure.
	* gcc.dg/pr61441.c: Require issignaling effective target.

From-SVN: r232381
parent fe79c97e
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> 2016-01-14 Segher Boessenkool <segher@kernel.crashing.org>
PR target/68803 PR target/68803
......
/* { dg-do run { target { *-*-linux* *-*-gnu* } } } */ /* { dg-do run { target { *-*-linux* *-*-gnu* } } } */
/* { dg-options "-O1 -lm -fexcess-precision=standard" } */ /* { dg-options "-O1 -lm -fexcess-precision=standard" } */
/* { dg-require-effective-target issignaling } */
#define _GNU_SOURCE #define _GNU_SOURCE
#include <stdio.h> #include <stdio.h>
......
...@@ -6287,8 +6287,19 @@ proc check_effective_target_pow10 { } { ...@@ -6287,8 +6287,19 @@ proc check_effective_target_pow10 { } {
} "-lm" ] } "-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 {} { proc check_effective_target_hard_dfp {} {
return [check_no_messages_and_pattern hard_dfp "!adddd3" assembly { return [check_no_messages_and_pattern hard_dfp "!adddd3" assembly {
typedef float d64 __attribute__((mode(DD))); typedef float d64 __attribute__((mode(DD)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment