diff options
author | Janis Johnson <janis187@us.ibm.com> | 2009-03-16 19:59:37 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2009-03-16 19:59:37 +0000 |
commit | fabab0b641996e83bfc36dace546bf63f7be07da (patch) | |
tree | b6b7f5733fa617d1709e6f914fe1f57ab0e7a0c7 | |
parent | 8ce1256960fcfa80ff1c0ca0723d7d1d8616aa98 (diff) | |
download | gcc-fabab0b641996e83bfc36dace546bf63f7be07da.zip gcc-fabab0b641996e83bfc36dace546bf63f7be07da.tar.gz gcc-fabab0b641996e83bfc36dace546bf63f7be07da.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20001012-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 16 |
4 files changed, 23 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 077597d..1ebe5d1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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. diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp b/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp index 048e65f..1ecfc6d 100644 --- a/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp @@ -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 diff --git a/gcc/testsuite/gcc.dg/20001012-1.c b/gcc/testsuite/gcc.dg/20001012-1.c index eda69c0..a7abbb2 100644 --- a/gcc/testsuite/gcc.dg/20001012-1.c +++ b/gcc/testsuite/gcc.dg/20001012-1.c @@ -1,4 +1,4 @@ -/* { dg-do run { target fpic } } */ +/* { dg-do run { target { fpic && ieee } } } */ /* { dg-options "-O2 -fpic" } */ extern void abort (void); diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 115f992..3838899 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -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 +} |