riscv32 has never had the 64-bit CTZ intrinsic that the test expects.
That expectation was likely a mistake. Drop it.
Regstrapped on x86_64-linux-gnu along with other patches in this batch;
also tested with targets riscv64-elf and riscv32-elf on the same host,
both trunk and gcc-15. Ok to install?
for gcc/testsuite/ChangeLog
* pr90838-2.c: Drop 64-bit CTZ expectation on riscv32.
---
gcc/testsuite/gcc.dg/pr90838-2.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/pr90838-2.c b/gcc/testsuite/gcc.dg/pr90838-2.c
index a38799866fa88..235a2c83d85a3 100644
--- a/gcc/testsuite/gcc.dg/pr90838-2.c
+++ b/gcc/testsuite/gcc.dg/pr90838-2.c
@@ -35,5 +35,4 @@ int ctz4 (unsigned long long x)
/* { dg-final { scan-tree-dump {= \.CTZ} "forwprop2" { target { { i?86-*-*
x86_64-*-* } && { ! { ia32 } } } } } } */
/* { dg-final { scan-tree-dump {= \.CTZ} "forwprop2" { target aarch64*-*-* } }
} */
/* { dg-final { scan-tree-dump {= \.CTZ} "forwprop2" { target { rv64 } } } } */
-/* { dg-final { scan-tree-dump {= \.CTZ} "forwprop2" { target { rv32 } } } } */
/* { dg-final { scan-tree-dump {= \.CTZ} "forwprop2" { target {
loongarch64*-*-* } } } } */
--
Alexandre Oliva, happy hacker https://blog.lx.oliva.nom.br/
Free Software Activist FSFLA co-founder GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity.
Excluding neuro-others for not behaving ""normal"" is *not* inclusive!