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
This commit is contained in:
parent
2b253bdc43
commit
245f0e1c6d
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
@ -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*-*-*"] {
|
||||
|
@ -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*-*-*"] {
|
||||
|
@ -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 } {
|
||||
|
Loading…
Reference in New Issue
Block a user