From 70c25e5be2d74b6c572dec884d280120a53f4149 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Fri, 19 Jun 2020 16:15:21 -0400 Subject: [PATCH] testsuite: popcount[45]ll require lp64 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 * gcc.dg/tree-ssa/popcount4ll.c: Add target lp64. * gcc.dg/tree-ssa/popcount5ll.c: Same. --- gcc/testsuite/gcc.dg/tree-ssa/popcount4ll.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/popcount5ll.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/popcount4ll.c b/gcc/testsuite/gcc.dg/tree-ssa/popcount4ll.c index 191d957c688..c1588be68e4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/popcount4ll.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/popcount4ll.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target { lp64 } } } */ /* { dg-require-effective-target popcountll } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/popcount5ll.c b/gcc/testsuite/gcc.dg/tree-ssa/popcount5ll.c index 831d5e1722a..edb191bf894 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/popcount5ll.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/popcount5ll.c @@ -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" } */ -- 2.30.2