ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/bpf/xbpf-smod-1.c

15 lines
271 B
C

/* Verify that smod instruction is used for xBPF. */
/* { dg-do compile } */
/* { dg-options "-O0 -mxbpf" } */
void
foo ()
{
signed int x = 5;
signed int y = 2;
signed int z = x % y;
signed int w = x % 3;
}
/* { dg-final { scan-assembler "smod(32)?\t%r" } } */