Debian Codegraph @

gcc/testsuite/gcc.target/riscv/pr107786-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gc -mabi=lp64" } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O1" } } */
4
5 int c;
6
7 int main() {
8 for (;;) {
9 short h = c * 100;
10 if (h & 0x7ff0)
11 break;
12 }
13 }
14
15 /* { dg-final { scan-assembler-times "andi\t" 1 } } */
16 /* { dg-final { scan-assembler-times "srli\t" 1 } } */
17