diff options
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 99abeb4459f..b304cabd8fe 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 f3631016673..1d9e4eb0f84 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 eddb5b9b3c8..499ef00da58 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 2e2df3ae5e1..68b6206ff59 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 } { |