testsuite: Fix up strlenopt-80.c on powerpc [PR99636]
authorJakub Jelinek <jakub@redhat.com>
Thu, 18 Mar 2021 15:14:47 +0000 (16:14 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 18 Mar 2021 15:14:47 +0000 (16:14 +0100)
Similar issue as in strlenopt-73.c, various spots in this test rely
on MOVE_MAX >= 8, this time it uses a target selector to pick up a couple
of targets, and all of them but powerpc 32-bit satisfy it, but powerpc
32-bit have MOVE_MAX just 4.

2021-03-18  Jakub Jelinek  <jakub@redhat.com>

PR testsuite/99636
* gcc.dg/strlenopt-80.c: For powerpc*-*-*, only enable for lp64.

gcc/testsuite/gcc.dg/strlenopt-80.c

index 9124fe4..a853402 100644 (file)
@@ -3,7 +3,7 @@
    The optimization is only implemented for MEM_REF stores and other
    targets than those below may not transform the memcpy call into
    such a store.
-   { dg-do compile { target aarch64*-*-* i?86-*-* powerpc*-*-* x86_64-*-* } }
+   { dg-do compile { target { { aarch64*-*-* i?86-*-* x86_64-*-* } || { { powerpc*-*-* } && lp64 } } } }
 
    { dg-options "-O2 -Wall -fdump-tree-optimized" } */