Debian Codegraph @

gcc/testsuite/gcc.target/riscv/pr106888.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gc_zbb -mabi=lp64" } */
3
4 int
5 ctz (int i)
6 {
7 int res = __builtin_ctz (i);
8 return res&0xffff;
9 }
10
11 /* { dg-final { scan-assembler-times {\mctzw} 1 } } */
12 /* { dg-final { scan-assembler-not {\mandi} } } */