Message ID | 1d6e6492-4e8c-ee3f-f5fd-7ae0d8def5de@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
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
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>