diff options
author | Robert Suchanek <robert.suchanek@imgtec.com> | 2015-01-28 09:22:20 +0000 |
---|---|---|
committer | Robert Suchanek <rts@gcc.gnu.org> | 2015-01-28 09:22:20 +0000 |
commit | 6b18ab83aa0c84b8f4dc6d457511c6e19c409bb1 (patch) | |
tree | e1a3d672630845f9b18570f057676b291c61141c | |
parent | 813ba013999a03821254c03c5d3d33e4512ca678 (diff) | |
download | gcc-6b18ab83aa0c84b8f4dc6d457511c6e19c409bb1.zip gcc-6b18ab83aa0c84b8f4dc6d457511c6e19c409bb1.tar.gz gcc-6b18ab83aa0c84b8f4dc6d457511c6e19c409bb1.tar.bz2 |
Regression cleanup for MIPS nan2008 toolchain.
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_mips_nanlegacy): New.
* gcc.target/mips/loongson-simd.c: Require legacy NaN support.
* gcc.target/mips/mips.exp (mips-dg-options): Imply -mnan=legacy for
ISA rev < 2.
From-SVN: r220199
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/loongson-simd.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/mips.exp | 1 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 9 |
4 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 12c1c57..08d6ec0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com> + + * lib/target-supports.exp (check_effective_target_mips_nanlegacy): New. + * gcc.target/mips/loongson-simd.c: Require legacy NaN support. + * gcc.target/mips/mips.exp (mips-dg-options): Imply -mnan=legacy for + ISA rev < 2. + 2015-01-28 Jakub Jelinek <jakub@redhat.com> PR bootstrap/64612 diff --git a/gcc/testsuite/gcc.target/mips/loongson-simd.c b/gcc/testsuite/gcc.target/mips/loongson-simd.c index 160da6b..949632e 100644 --- a/gcc/testsuite/gcc.target/mips/loongson-simd.c +++ b/gcc/testsuite/gcc.target/mips/loongson-simd.c @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see /* loongson.h does not handle or check for MIPS16ness or microMIPSness. There doesn't seem any good reason for it to, given that the Loongson processors do not support either. */ +/* { dg-require-effective-target mips_nanlegacy } */ /* { dg-options "isa=loongson -mhard-float -mno-micromips -mno-mips16 -flax-vector-conversions" } */ #include "loongson.h" diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index b81d344..a0980a9 100644 --- a/gcc/testsuite/gcc.target/mips/mips.exp +++ b/gcc/testsuite/gcc.target/mips/mips.exp @@ -1300,6 +1300,7 @@ proc mips-dg-options { args } { mips_make_test_option options "-mno-dsp" mips_make_test_option options "-mno-synci" mips_make_test_option options "-mno-micromips" + mips_make_test_option options "-mnan=legacy" } if { $isa_rev > 5 } { mips_make_test_option options "-mno-dsp" diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 2cc8c21..cb8a613 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3036,6 +3036,15 @@ proc check_effective_target_mips_loongson { } { }] } +# Return 1 if this is a MIPS target that supports the legacy NAN. + +proc check_effective_target_mips_nanlegacy { } { + return [check_no_compiler_messages nanlegacy assembly { + #include <stdlib.h> + int main () { return 0; } + } "-mnan=legacy"] +} + # Return 1 if this is an ARM target that adheres to the ABI for the ARM # Architecture. |