1 /* Verify that smod instruction is used for xBPF. */
2 /* { dg-do compile } */
3 /* { dg-options "-O0 -mxbpf" } */
4 
5 void
foo()6 foo ()
7 {
8   signed int x = 5;
9   signed int y = 2;
10   signed int z = x % y;
11   signed int w = x % 3;
12 }
13 
14 /* { dg-final { scan-assembler "smod(32)?\t%r" } } */
15