* lib/target-supports.exp
(check_effective_target_powerpc_hard_double): New. * gcc.dg/tree-ssa/loop-19.c: Use powerpc_hard_double instead of powerpc*-*-*. From-SVN: r136914
This commit is contained in:
parent
7b0518e33c
commit
1b811175ce
@ -1,3 +1,10 @@
|
||||
2008-06-18 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* lib/target-supports.exp
|
||||
(check_effective_target_powerpc_hard_double): New.
|
||||
* gcc.dg/tree-ssa/loop-19.c: Use powerpc_hard_double instead of
|
||||
powerpc*-*-*.
|
||||
|
||||
2008-06-16 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* gcc.dg/weak/weak-2.c: We no longer complain about incompatibilty.
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
The testcase comes from PR 29256 (and originally, the stream benchmark). */
|
||||
|
||||
/* { dg-do compile { target i?86-*-* x86_64-*-* powerpc*-*-*} } */
|
||||
/* { dg-do compile { target { i?86-*-* || { x86_64-*-* || powerpc_hard_double } } } } */
|
||||
/* { dg-require-effective-target nonpic } */
|
||||
/* { dg-options "-O3 -fdump-tree-final_cleanup" } */
|
||||
|
||||
|
@ -1277,6 +1277,24 @@ proc check_effective_target_powerpc_fprs { } {
|
||||
}
|
||||
}
|
||||
|
||||
# Return 1 if this is a PowerPC target with hardware double-precision
|
||||
# floating point.
|
||||
|
||||
proc check_effective_target_powerpc_hard_double { } {
|
||||
if { [istarget powerpc*-*-*]
|
||||
|| [istarget rs6000-*-*] } {
|
||||
return [check_no_compiler_messages powerpc_hard_double object {
|
||||
#ifdef _SOFT_DOUBLE
|
||||
#error soft double
|
||||
#else
|
||||
int dummy;
|
||||
#endif
|
||||
}]
|
||||
} else {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
# Return 1 if this is a PowerPC target supporting -maltivec.
|
||||
|
||||
proc check_effective_target_powerpc_altivec_ok { } {
|
||||
|
Loading…
Reference in New Issue
Block a user