Debian Codegraph @

gcc/testsuite/gcc.target/riscv/switch-qi.c

raw
1 /* { dg-do compile { target { riscv64*-*-* } } } */
2 /* { dg-options "-march=rv64gc -mabi=lp64" } */
3
4 /* Test for riscv_extend_comparands patch. */
5 extern void asdf(int);
6 void foo(signed char x) {
7 switch (x) {
8 case 0: asdf(10); break;
9 case 1: asdf(11); break;
10 case 2: asdf(12); break;
11 case 3: asdf(13); break;
12 case 4: asdf(14); break;
13 }
14 }
15 /* { dg-final { scan-assembler-not {\mandi} } } */