The two tests use decimal floating point and therefore fail where that isn’t
available.

Fixed for Darwin by adding the relevant dg-requires lines
(I didn’t try to alter the cases for AIX, but maybe the skip lines could be
removed now).

tested on powerpc-darwin9, applied to mainline,
thanks
Iain

2019-06-22  Iain Sandoe  <i...@sandoe.co.uk>

        * gcc.target/powerpc/pr64205.c: Require effective target dfp.
        * gcc.target/powerpc/pr79909.c: Likewise.

diff --git a/gcc/testsuite/gcc.target/powerpc/pr64205.c 
b/gcc/testsuite/gcc.target/powerpc/pr64205.c
index 3882e3f..c726fb7 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr64205.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr64205.c
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
+/* { dg-require-effective-target dfp } */
 /* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-O2 -mdejagnu-cpu=G5 -maltivec" } */
 
diff --git a/gcc/testsuite/gcc.target/powerpc/pr79909.c 
b/gcc/testsuite/gcc.target/powerpc/pr79909.c
index d9fb7c3..d886c32 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr79909.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr79909.c
@@ -1,6 +1,7 @@
 /* PR rtl-optimization/79909 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -mxl-compat" } */
+/* { dg-require-effective-target dfp } */
 /* { dg-skip-if "DFP" { powerpc*-*-aix* } } */
 
 typedef float T __attribute__ ((mode (TD)));

Reply via email to