Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "" } */
3
4 /* Test for do_tablejump patch. */
5 extern void asdf(int);
6 void foo(int 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 {\msrli} } } */