Commit fabab0b6 by Janis Johnson Committed by Janis Johnson

re PR testsuite/37630 (gcc.dg/20001012-1.c depends on IEEE FP encoding)

	PR testsuite/37630
	* lib/target-supports.exp (check_effective_target_ieee): New.
	* gcc.c-torture/execute/ieee/ieee.exp: Use it.
	* gcc.dg/20001012-1.c: Require ieee.

From-SVN: r144891
parent 8ce12569
2009-03-16 Janis Johnson <janis187@us.ibm.com>
PR testsuite/37630
* lib/target-supports.exp (check_effective_target_ieee): New.
* gcc.c-torture/execute/ieee/ieee.exp: Use it.
* gcc.dg/20001012-1.c: Require ieee.
PR testsuite/37628
* gcc.c-torture/execute/pr35456.x: New, skip test for vax.
......
......@@ -28,7 +28,7 @@ load_lib c-torture.exp
# C torture test suite, and other contributors.
# Disable tests on machines with no hardware support for IEEE arithmetic.
if { [istarget "vax-*-*"] || [ istarget "powerpc-*-*spe"] } { return }
if { ![check_effective_target_ieee] } { return }
if $tracelevel then {
strace $tracelevel
......
/* { dg-do run { target fpic } } */
/* { dg-do run { target { fpic && ieee } } } */
/* { dg-options "-O2 -fpic" } */
extern void abort (void);
......
......@@ -2846,3 +2846,19 @@ proc check_effective_target_correct_iso_cpp_string_wchar_protos { } {
#endif
}]
}
# Return 1 if the target supports IEEE arithmetic.
proc check_effective_target_ieee { } {
global et_ieee_saved
if { ![info exists et_ieee_saved] } {
set et_ieee_saved 1
if { [istarget vax-*-*]
|| [istarget powerpc-*-*spe*] } {
set et_ieee_saved 0
}
}
return $et_ieee_saved
}
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