]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: popcount[45]ll require lp64
authorDavid Edelsohn <dje.gcc@gmail.com>
Fri, 19 Jun 2020 20:15:21 +0000 (16:15 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Fri, 19 Jun 2020 20:17:11 +0000 (16:17 -0400)
popcount[45]ll require __builtin_popcountll, but the test can succeed
without libcall through expand_doubleword_popcount.  However the Tree-SSA
optiization requires recognition of POPCOUNT.  This patch limits the test
to lp64 for the targets that fall through the cracks and were not
caught by the dg-require-effective-target popcountll.

gcc/testsuite/ChangeLog

2020-06-19  David Edelsohn  <dje.gcc@gmail.com>

* gcc.dg/tree-ssa/popcount4ll.c: Add target lp64.
* gcc.dg/tree-ssa/popcount5ll.c: Same.

gcc/testsuite/gcc.dg/tree-ssa/popcount4ll.c
gcc/testsuite/gcc.dg/tree-ssa/popcount5ll.c

index 191d957c688911e00911a04d29ff52a7793b88b8..c1588be68e4975a0524438adaebd8deb7c0ee440 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { lp64 } } } */
 /* { dg-require-effective-target popcountll } */
 /* { dg-options "-O2 -fdump-tree-optimized" } */
 
index 831d5e1722ad8a4a21dd2c28f0322a9206a14efb..edb191bf8941690a8da800d68feb249e9d67c382 100644 (file)
@@ -1,5 +1,5 @@
 /* PR tree-optimization/94800 */
-/* { dg-do compile } */
+/* { dg-do compile { target { lp64 } } } */
 /* { dg-require-effective-target popcountll } */
 /* { dg-options "-O2 -fdump-tree-optimized" } */