rs6000/test: Adjust scalar-test-neg-8.c with lp64 [PR108730]

Message ID 3d617c32-0601-36d8-259a-d63ab15cf986@linux.ibm.com
State Accepted
Headers
Series rs6000/test: Adjust scalar-test-neg-8.c with lp64 [PR108730] |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Kewen.Lin March 1, 2023, 5:55 a.m. UTC
  Hi,

The built-in function scalar_test_neg_qp is under stanza
ieee128-hw, that is TARGET_FLOAT128_HW.  Since we don't
have float128 hardware support on 32-bit as follows:

if (TARGET_FLOAT128_HW && !TARGET_64BIT)
  {
    if ((rs6000_isa_flags_explicit & OPTION_MASK_FLOAT128_HW) != 0)
      error ("%qs requires %qs", "%<-mfloat128-hardware%>", "-m64");
    rs6000_isa_flags &= ~OPTION_MASK_FLOAT128_HW;
  }

So adjust the case with lp64 effective target accordingly.

Tested on powerpc64-linux-gnu P7/P8/P9 and
powerpc64le-linux-gnu P9/P10.

I'm going to push this soon if no objections.

BR,
Kewen
-----
	PR testsuite/108730

gcc/testsuite/ChangeLog:

	* gcc.target/powerpc/bfp/scalar-test-neg-8.c: Adjust with lp64
	effective target requirement.
---
 gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-neg-8.c | 1 +
 1 file changed, 1 insertion(+)

--
2.39.2
  

Patch

diff --git a/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-neg-8.c b/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-neg-8.c
index 02dfa348b81..2ef512cd8d0 100644
--- a/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-neg-8.c
+++ b/gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-neg-8.c
@@ -1,4 +1,5 @@ 
 /* { dg-do run { target { powerpc*-*-* } } } */
+/* { dg-require-effective-target lp64 } */
 /* { dg-require-effective-target p9vector_hw } */
 /* { dg-options "-mdejagnu-cpu=power9" } */