]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Adjust scalar-test-neg-8.c with lp64 [PR108730]
authorKewen Lin <linkw@linux.ibm.com>
Wed, 8 Mar 2023 06:56:32 +0000 (00:56 -0600)
committerKewen Lin <linkw@linux.ibm.com>
Wed, 8 Mar 2023 06:56:32 +0000 (00:56 -0600)
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.

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

index 02dfa348b81934cbbb3ab28b0de125b4f7fb470d..2ef512cd8d0c21173208adf25626750b233805ee 100644 (file)
@@ -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" } */