summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/udivmod-2.c
blob: 2bba8f3c954d96d508c34a10ca212616b097e152 (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 } } */