diff options
author | Richard Sandiford <richard@codesourcery.com> | 2006-05-20 14:33:58 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2006-05-20 14:33:58 +0000 |
commit | 245f0e1c6dc21c387cb13d4154a624340158a268 (patch) | |
tree | 81c279582b52ca87fa4e513c68fe5c3fe8cb7293 /gcc | |
parent | 2b253bdc4321a157e14fd086d4373e45ca5dd535 (diff) | |
download | gcc-245f0e1c6dc21c387cb13d4154a624340158a268.zip gcc-245f0e1c6dc21c387cb13d4154a624340158a268.tar.gz gcc-245f0e1c6dc21c387cb13d4154a624340158a268.tar.bz2 |
target-supports.exp (check_effective_target_mpaired_single): New function.
gcc/testsuite
* lib/target-supports.exp (check_effective_target_mpaired_single):
New function.
* gcc.dg/vect/vect.exp: Use it to check for compatible mipsisa64-elf
multilibs.
* g++.dg/vect/vect.exp: Likewise.
From-SVN: r113930
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/vect/vect.exp | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/vect.exp | 3 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 8 |
4 files changed, 20 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 99abeb4..b304cab 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,13 @@ 2006-05-20 Richard Sandiford <richard@codesourcery.com> + * lib/target-supports.exp (check_effective_target_mpaired_single): + New function. + * gcc.dg/vect/vect.exp: Use it to check for compatible mipsisa64-elf + multilibs. + * g++.dg/vect/vect.exp: Likewise. + +2006-05-20 Richard Sandiford <richard@codesourcery.com> + PR testsuite/25891 * g++.dg/gomp/gomp.exp: Skip if ![check_effective_target_fopenmp]. diff --git a/gcc/testsuite/g++.dg/vect/vect.exp b/gcc/testsuite/g++.dg/vect/vect.exp index f363101..1d9e4eb 100644 --- a/gcc/testsuite/g++.dg/vect/vect.exp +++ b/gcc/testsuite/g++.dg/vect/vect.exp @@ -61,7 +61,8 @@ if [istarget "powerpc*-*-*"] { } elseif { [istarget "i?86-*-*"] || [istarget "x86_64-*-*"] } { lappend DEFAULT_VECTCFLAGS "-msse2" set dg-do-what-default run -} elseif [istarget "mipsisa64*-*-*"] { +} elseif { [istarget "mipsisa64*-*-*"] + && [check_effective_target_mpaired_single] } { lappend DEFAULT_VECTCFLAGS "-mpaired-single" set dg-do-what-default run } elseif [istarget "sparc*-*-*"] { diff --git a/gcc/testsuite/gcc.dg/vect/vect.exp b/gcc/testsuite/gcc.dg/vect/vect.exp index eddb5b9..499ef00 100644 --- a/gcc/testsuite/gcc.dg/vect/vect.exp +++ b/gcc/testsuite/gcc.dg/vect/vect.exp @@ -52,7 +52,8 @@ if [istarget "powerpc*-*-*"] { } elseif { [istarget "i?86-*-*"] || [istarget "x86_64-*-*"] } { lappend DEFAULT_VECTCFLAGS "-msse2" set dg-do-what-default run -} elseif [istarget "mipsisa64*-*-*"] { +} elseif { [istarget "mipsisa64*-*-*"] + && [check_effective_target_mpaired_single] } { lappend DEFAULT_VECTCFLAGS "-mpaired-single" set dg-do-what-default run } elseif [istarget "sparc*-*-*"] { diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 2e2df3a..68b6206 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -454,6 +454,14 @@ proc check_effective_target_fpic { } { return 0 } +# Return true if the target supports -mpaired-single (as used on MIPS). + +proc check_effective_target_mpaired_single { } { + return [check_no_compiler_messages freorder object { + void foo (void) { } + } "-mpaired-single"] +} + # Return true if iconv is supported on the target. In particular IBM1047. proc check_iconv_available { test_what } { |