PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / umod-2.c
blob6fe73846833378ff0569ceedf03ac89fcc8c9bcc
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mtune=atom" } */
4 extern unsigned char z;
6 unsigned char
7 foo (unsigned char x, unsigned char y)
9 z = x/y;
10 return x % y;
13 /* { dg-final { scan-assembler-times "divb" 1 } } */
14 /* { dg-final { scan-assembler-not "divw" } } */