]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] testsuite: Check for effective-target ctz [PR123192].
authorRobin Dapp <rdapp.gcc@gmail.com>
Fri, 19 Dec 2025 18:36:35 +0000 (11:36 -0700)
committerJeff Law <jeffrey.law@oss.qualcomm.com>
Fri, 19 Dec 2025 18:37:04 +0000 (11:37 -0700)
Rainer reported that ctz-ch.c fails on several platforms.
This patch adds /* { dg-require-effective-target ctz } */
to the test which looks like it does the right thing.

Regtested on rv64gcv_zvl512, pushing as obvious.

Regards
 Robin

PR tree-optimization/123192

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/ctz-ch.c: Require ctz target.

gcc/testsuite/gcc.dg/tree-ssa/ctz-ch.c

index 5d725979971bf18a26992b98a11a622bfee152a4..0842d44b4e1e3842426c09ea68cf19ebdfd8a2ad 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target ctz } */
 /* { dg-options "-O2 -fdump-tree-optimized" } */
 
 typedef unsigned long BITMAP_WORD;