aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/udivmod-3.c
blob: f2ac4e5dae87afc72a1fd9135b3ede51f7dcb3da (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2 -m8bit-idiv" } */

unsigned int
foo (unsigned int x, unsigned int y)
{
   return x % y;
}

/* { dg-final { scan-assembler-times "divb" 1 } } */
/* { dg-final { scan-assembler-times "divl" 1 } } */