diff mbox

[rs6000] Clean up powerpc __float128 tests for older hardware

Message ID 1d6e6492-4e8c-ee3f-f5fd-7ae0d8def5de@linux.vnet.ibm.com
State New
Headers show

Commit Message

Bill Schmidt June 28, 2016, 7:28 p.m. UTC
Hi,

On POWER7 and earlier hardware, -mvsx is not on by default, causing the new
tests for __float128 builtins to fail.  This patch makes the dependency on VSX
hardware explicit in the tests.

Tested on powerpc64-unknown-linux-gnu on POWER7.  Ok for trunk, and for later
backport to 6.2?

Thanks,
Bill


2016-06-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* gcc.target/powerpc/abs128-1.c: Require VSX.
	* gcc.target/powerpc/copysign128-1.c: Likewise.
	* gcc.target/powerpc/inf128-1.c: Likewise.
	* gcc.target/powerpc/nan128-1.c: Likewise.

Comments

Segher Boessenkool June 28, 2016, 8 p.m. UTC | #1
Hi Bill,

On Tue, Jun 28, 2016 at 02:28:37PM -0500, Bill Schmidt wrote:
> On POWER7 and earlier hardware, -mvsx is not on by default, causing the new
> tests for __float128 builtins to fail.  This patch makes the dependency on VSX
> hardware explicit in the tests.
> 
> Tested on powerpc64-unknown-linux-gnu on POWER7.  Ok for trunk, and for later
> backport to 6.2?

Okay, thanks,


Segher
diff mbox

Patch

Index: gcc/testsuite/gcc.target/powerpc/abs128-1.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/abs128-1.c	(revision 237802)
+++ gcc/testsuite/gcc.target/powerpc/abs128-1.c	(working copy)
@@ -1,5 +1,5 @@ 
-/* { dg-do run { target { powerpc64*-*-* && vmx_hw } } } */
-/* { dg-options "-mfloat128" } */
+/* { dg-do run { target { powerpc64*-*-* && vsx_hw } } } */
+/* { dg-options "-mfloat128 -mvsx" } */
 
 void abort ();
 
Index: gcc/testsuite/gcc.target/powerpc/copysign128-1.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/copysign128-1.c	(revision 237802)
+++ gcc/testsuite/gcc.target/powerpc/copysign128-1.c	(working copy)
@@ -1,5 +1,5 @@ 
-/* { dg-do run { target { powerpc64*-*-* && vmx_hw } } } */
-/* { dg-options "-mfloat128" } */
+/* { dg-do run { target { powerpc64*-*-* && vsx_hw } } } */
+/* { dg-options "-mfloat128 -mvsx" } */
 
 void abort ();
 
Index: gcc/testsuite/gcc.target/powerpc/inf128-1.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/inf128-1.c	(revision 237802)
+++ gcc/testsuite/gcc.target/powerpc/inf128-1.c	(working copy)
@@ -1,5 +1,5 @@ 
-/* { dg-do run { target { powerpc64*-*-* && vmx_hw } } } */
-/* { dg-options "-mfloat128" } */
+/* { dg-do run { target { powerpc64*-*-* && vsx_hw } } } */
+/* { dg-options "-mfloat128 -mvsx" } */
 
 void abort ();
 
Index: gcc/testsuite/gcc.target/powerpc/nan128-1.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/nan128-1.c	(revision 237802)
+++ gcc/testsuite/gcc.target/powerpc/nan128-1.c	(working copy)
@@ -1,5 +1,5 @@ 
-/* { dg-do run { target { powerpc64*-*-* && vmx_hw } } } */
-/* { dg-options "-mfloat128" } */
+/* { dg-do run { target { powerpc64*-*-* && vsx_hw } } } */
+/* { dg-options "-mfloat128 -mvsx" } */
 
 #include <stdio.h>