Debian Codegraph @

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

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