summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/umod-2.c
blob: 6fe73846833378ff0569ceedf03ac89fcc8c9bcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -mtune=atom" } */

extern unsigned char z;

unsigned char
foo (unsigned char x, unsigned char y)
{
  z = x/y;
  return x % y;
}

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