(check_effective_target_powerpc_hard_double): New.
* gcc.dg/tree-ssa/loop-19.c: Use powerpc_hard_double instead of
powerpc*-*-*.
From-SVN: r136914
+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.
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" } */
}
}
+# 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 { } {