aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2020-06-19 16:15:21 -0400
committerDavid Edelsohn <dje.gcc@gmail.com>2020-06-19 16:17:11 -0400
commit70c25e5be2d74b6c572dec884d280120a53f4149 (patch)
tree1ef88e1390b861d942b2e9b6ca2d16e77fb350c6 /gcc
parent5b6215083bd6a3e10dd142e1c5d4fab011d6f074 (diff)
downloadgcc-70c25e5be2d74b6c572dec884d280120a53f4149.zip
gcc-70c25e5be2d74b6c572dec884d280120a53f4149.tar.gz
gcc-70c25e5be2d74b6c572dec884d280120a53f4149.tar.bz2
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 <dje.gcc@gmail.com> * gcc.dg/tree-ssa/popcount4ll.c: Add target lp64. * gcc.dg/tree-ssa/popcount5ll.c: Same.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/popcount4ll.c2
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/popcount5ll.c2
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 191d957..c1588be 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 831d5e17..edb191b 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" } */