public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-5802] Re: testsuite: Adjust target requirements for sad-vectorize and signbit
@ 2020-12-06  5:24 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-12-06  5:24 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1fab57f26ec24ce4e5672a7515c88611eba2483f

commit r11-5802-g1fab57f26ec24ce4e5672a7515c88611eba2483f
Author: Alan Modra <amodra@gmail.com>
Date:   Thu Oct 29 17:17:47 2020 +1030

    Re: testsuite: Adjust target requirements for sad-vectorize and signbit
    
    Fixes
    FAIL: gcc.target/powerpc/signbit-1.c scan-assembler-not stxvd2x
    FAIL: gcc.target/powerpc/signbit-1.c scan-assembler-times mfvsrd 3
    FAIL: gcc.target/powerpc/signbit-1.c scan-assembler-times srdi 3
    FAIL: gcc.target/powerpc/signbit-2.c scan-assembler-times ld 1
    FAIL: gcc.target/powerpc/signbit-2.c scan-assembler-times srdi 1
    on powerpc-linux (or powerpc64-linux biarch -m32).
    
    signbit-1.c is quite obviously a 64-bit only testcase given the
    scan-assembler directives, and the purpose of the testcase to verify
    the 64-bit only UNSPEC_SIGNBIT patterns.  It could be made to pass for
    -m32 by adding -mpowerpc64, but that option that isn't very effective
    when bi-arch testing and results in errors on rs6000-aix.  And it is
    pointless to match -m32 stores to the stack followed by loads, which
    is what we do at the moment.
    
    signbit-2.c on the other hand has more reasonable 32-bit output.
    
            * gcc.target/powerpc/signbit-1.c: Reinstate lp64 condition.
            * gcc.target/powerpc/signbit-2.c: Match 32-bit output too.

Diff:
---
 gcc/testsuite/gcc.target/powerpc/signbit-1.c | 1 +
 gcc/testsuite/gcc.target/powerpc/signbit-2.c | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/powerpc/signbit-1.c b/gcc/testsuite/gcc.target/powerpc/signbit-1.c
index eb4f53e397d..1642bf46d7a 100644
--- a/gcc/testsuite/gcc.target/powerpc/signbit-1.c
+++ b/gcc/testsuite/gcc.target/powerpc/signbit-1.c
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target lp64 } */
 /* { dg-require-effective-target ppc_float128_sw } */
 /* { dg-require-effective-target powerpc_p8vector_ok } */
 /* { dg-options "-mdejagnu-cpu=power8 -O2 -mfloat128" } */
diff --git a/gcc/testsuite/gcc.target/powerpc/signbit-2.c b/gcc/testsuite/gcc.target/powerpc/signbit-2.c
index ff6af963dda..1b792916eba 100644
--- a/gcc/testsuite/gcc.target/powerpc/signbit-2.c
+++ b/gcc/testsuite/gcc.target/powerpc/signbit-2.c
@@ -13,5 +13,7 @@ int do_signbit_kf (__float128 *a) { return __builtin_signbit (*a); }
 /* { dg-final { scan-assembler-not   "lxvw4x"   } } */
 /* { dg-final { scan-assembler-not   "lxsd"     } } */
 /* { dg-final { scan-assembler-not   "lxsdx"    } } */
-/* { dg-final { scan-assembler-times "ld"     1 } } */
-/* { dg-final { scan-assembler-times "srdi"   1 } } */
+/* { dg-final { scan-assembler-times "ld"     1 { target lp64 } } } */
+/* { dg-final { scan-assembler-times "srdi"   1 { target lp64 } } } */
+/* { dg-final { scan-assembler-times "lwz"    1 { target ilp32 } } } */
+/* { dg-final { scan-assembler-times "rlwinm" 1 { target ilp32 } } } */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-06  5:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-06  5:24 [gcc r11-5802] Re: testsuite: Adjust target requirements for sad-vectorize and signbit Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).