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 char h = c * 100;
10 if (h)
11 break;
12 }
13 }
14
15 /* { dg-final { scan-assembler-times "andi\t" 1 } } */
16 /* { dg-final { scan-assembler-not "srli\t" } } */
17