diff mbox

[rs6000] Fix {div,mul}kc3-1.c for older hardware

Message ID 0233f92b-9933-c06f-963b-7fa0e9a984ec@linux.vnet.ibm.com
State New
Headers show

Commit Message

Bill Schmidt July 15, 2016, 4:40 p.m. UTC
Hi,

For the subject tests, I neglected to ensure they would be skipped on
older hardware.  This patch fixes that.  Tested on
powerpc64-unknown-linux-gnu on POWER7 to verify the tests are
unsupported there, and on powerpc64le-unknown-linux-gnu on POWER8
to verify they still run there.  Ok for trunk and gcc-6-branch?

Thanks,
Bill


2016-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

        * gcc.target/powerpc/divkc3-1.c: Require p8vector support.
        * gcc.target/powerpc/mulkc3-1.c: Likewise.

Comments

Segher Boessenkool July 15, 2016, 6:46 p.m. UTC | #1
On Fri, Jul 15, 2016 at 11:40:34AM -0500, Bill Schmidt wrote:
> For the subject tests, I neglected to ensure they would be skipped on
> older hardware.  This patch fixes that.  Tested on
> powerpc64-unknown-linux-gnu on POWER7 to verify the tests are
> unsupported there, and on powerpc64le-unknown-linux-gnu on POWER8
> to verify they still run there.  Ok for trunk and gcc-6-branch?

[ This shows up as the __mulkc3 etc. functions not existing at all ].

Okay.  Thanks,


Segher
diff mbox

Patch

Index: gcc/testsuite/gcc.target/powerpc/divkc3-1.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/divkc3-1.c	(revision 238375)
+++ gcc/testsuite/gcc.target/powerpc/divkc3-1.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-do run { target { powerpc64*-*-* && vsx_hw } } } */
+/* { dg-require-effective-target powerpc_p8vector_ok } */
 /* { dg-options "-mfloat128 -mvsx" } */
 
 void abort ();
Index: gcc/testsuite/gcc.target/powerpc/mulkc3-1.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/mulkc3-1.c	(revision 238375)
+++ gcc/testsuite/gcc.target/powerpc/mulkc3-1.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-do run { target { powerpc64*-*-* && vsx_hw } } } */
+/* { dg-require-effective-target powerpc_p8vector_ok } */
 /* { dg-options "-mfloat128 -mvsx" } */
 
 void abort ();