target-supports.exp: Add method to determine if the effective target is really a ppc405 after...
2009-01-09 Joel Sherrill <joel.sherrill@oarcorp.com> * lib/target-supports.exp: Add method to determine if the effective target is really a ppc405 after applying all compile options. * gcc.target/powerpc/405-mulhhwu-2.c: Add dg-skip-if not ppc405. * gcc.target/powerpc/405-nmachhw-1.c: Likewise. * gcc.target/powerpc/405-nmaclhw-1.c: Likewise. * gcc.target/powerpc/405-machhwu-1.c: Likewise. * gcc.target/powerpc/405-mullhwu-1.c: Likewise. * gcc.target/powerpc/405-nmacchw-1.c: Likewise. * gcc.target/powerpc/405-mulchwu-1.c: Likewise. * gcc.target/powerpc/405-nmachhw-2.c: Likewise. * gcc.target/powerpc/405-nmaclhw-2.c: Likewise. * gcc.target/powerpc/405-machhwu-2.c: Likewise. * gcc.target/powerpc/405-mulhhw-1.c: Likewise. * gcc.target/powerpc/405-machhw-1.c: Likewise. * gcc.target/powerpc/405-mullhw-1.c: Likewise. * gcc.target/powerpc/405-maclhw-1.c: Likewise. * gcc.target/powerpc/405-dlmzb-strlen-1.c: Likewise. * gcc.target/powerpc/405-mullhwu-2.c: Likewise. * gcc.target/powerpc/405-nmacchw-2.c: Likewise. * gcc.target/powerpc/405-mulchwu-2.c: Likewise. * gcc.target/powerpc/405-mulchw-1.c: Likewise. * gcc.target/powerpc/405-maclhwu-1.c: Likewise. * gcc.target/powerpc/405-macchw-1.c: Likewise. * gcc.target/powerpc/405-mulhhw-2.c: Likewise. * gcc.target/powerpc/405-machhw-2.c: Likewise. * gcc.target/powerpc/405-mullhw-2.c: Likewise. * gcc.target/powerpc/405-maclhw-2.c: Likewise. * gcc.target/powerpc/405-macchwu-1.c: Likewise. * gcc.target/powerpc/405-mulhhwu-1.c: Likewise. * gcc.target/powerpc/405-mulchw-2.c: Likewise. * gcc.target/powerpc/405-maclhwu-2.c: Likewise. * gcc.target/powerpc/405-macchw-2.c: Likewise. * gcc.target/powerpc/405-macchwu-2.c: Likewise. From-SVN: r143279
This commit is contained in:
parent
2ab5ef3ed7
commit
79ee9e8be8
@ -1474,6 +1474,23 @@ proc check_effective_target_powerpc_altivec { } {
|
||||
}
|
||||
}
|
||||
|
||||
# Return 1 if this is a PowerPC 405 target. The check includes options
|
||||
# specified by dg-options for this test, so don't cache the result.
|
||||
|
||||
proc check_effective_target_powerpc_405_nocache { } {
|
||||
if { [istarget powerpc*-*-*] || [istarget rs6000-*-*] } {
|
||||
return [check_no_compiler_messages_nocache powerpc_405 object {
|
||||
#ifdef __PPC405__
|
||||
int dummy;
|
||||
#else
|
||||
#error not a PPC405
|
||||
#endif
|
||||
} [current_compiler_flags]]
|
||||
} else {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
# Return 1 if this is a SPU target with a toolchain that
|
||||
# supports automatic overlay generation.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user