2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / udivmod-4.c
blob14dd87c1732224440be84f39f7e0301aceb15702
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -m8bit-idiv" } */
4 extern void abort (void);
6 void
7 test (unsigned int x, unsigned int y, unsigned int q, unsigned int r)
9 if ((x / y) != q || (x % y) != r)
10 abort ();
13 /* { dg-final { scan-assembler-times "divb" 1 } } */
14 /* { dg-final { scan-assembler-times "divl" 1 } } */