Debian Codegraph @

gcc/testsuite/gcc.target/bpf/divmod-libcall-1.c

raw
1 /* This test makes sure that no spurious external symbol declarations are
2 emitted for libcalls in tried but eventually not used code sequences. */
3
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -mcpu=v3" } */
6 /* { dg-final { scan-assembler-not "global\t__divdi3" } } */
7 /* { dg-final { scan-assembler-not "global\t__moddi3" } } */
8
9 int
10 foo (unsigned int len)
11 {
12 return ((unsigned long)len) * 234 / 5;
13 }
14
15 int
16 bar (unsigned int len)
17 {
18 return ((unsigned long)len) * 234 % 5;
19 }