aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2020-06-19 16:15:21 -0400
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:14:19 -0300
commitb2d893a8c4df0aa591a032c1c62ecfd57814dc91 (patch)
tree76a9f942988cbd97dd4b24133fb396c79bc7cec8 /gcc
parent878728b8966c14b4ac900fedac9d6146d344fd79 (diff)
downloadgcc-b2d893a8c4df0aa591a032c1c62ecfd57814dc91.zip
gcc-b2d893a8c4df0aa591a032c1c62ecfd57814dc91.tar.gz
gcc-b2d893a8c4df0aa591a032c1c62ecfd57814dc91.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" } */