Debian Codegraph @

gcc/testsuite/gcc.target/riscv/xtheadbb-ff1.c

raw
1 /* { dg-do compile { target { ! riscv_abi_e } } } */
2 /* { dg-options "-march=rv32gc_xtheadbb" { target { rv32 } } } */
3 /* { dg-options "-march=rv64gc_xtheadbb" { target { rv64 } } } */
4 /* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */
5
6 int
7 foo (unsigned long a)
8 {
9 return __builtin_clzl (a);
10 }
11
12 int
13 bar (unsigned long a)
14 {
15 return __builtin_ctzl (a);
16 }
17
18 /* { dg-final { scan-assembler-times "th.ff1\t" 2 } } */