PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / umod-3.c
blob609ab5207128830b936596c579f98afe7c6a7de5
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mtune=atom" } */
4 extern void exit (int);
6 unsigned char cx = 7;
8 int
9 main ()
11 unsigned char cy;
12 unsigned char cz = 1;
13 asm ("" : "+q" (cz));
15 cy = cx / 6; if (cy != cz) exit (1);
16 cy = cx % 6; if (cy != cz) exit (1);
18 exit(0);
21 /* { dg-final { scan-assembler-times "divb" 1 } } */
22 /* { dg-final { scan-assembler-not "divw" } } */