Debian Codegraph @

gcc/testsuite/gcc.target/riscv/zbs-ext.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gc_zbs -mabi=lp64" } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O1" } } */
4 typedef unsigned long uint64_t;
5 typedef unsigned int uint32_t;
6
7 uint64_t bclr (const uint32_t i)
8 {
9 uint64_t checks = 10;
10 checks &= ~(1U << i);
11 return checks;
12 }
13
14 /* { dg-final { scan-assembler-times "bclr\t" 1 } } */
15 /* { dg-final { scan-assembler-not "sllw\t"} } */