Commit 1b811175 by Joseph Myers Committed by Joseph Myers

* 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
parent 7b0518e3
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> 2008-06-16 Jan Hubicka <jh@suse.cz>
* gcc.dg/weak/weak-2.c: We no longer complain about incompatibilty. * gcc.dg/weak/weak-2.c: We no longer complain about incompatibilty.
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
The testcase comes from PR 29256 (and originally, the stream benchmark). */ 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-require-effective-target nonpic } */
/* { dg-options "-O3 -fdump-tree-final_cleanup" } */ /* { dg-options "-O3 -fdump-tree-final_cleanup" } */
......
...@@ -1277,6 +1277,24 @@ proc check_effective_target_powerpc_fprs { } { ...@@ -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. # Return 1 if this is a PowerPC target supporting -maltivec.
proc check_effective_target_powerpc_altivec_ok { } { proc check_effective_target_powerpc_altivec_ok { } {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment