2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / udivmod-5.c
blob7c31a0a9c3104f9e6aa3d31ef43b295456421fd0
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -m8bit-idiv" } */
4 extern void foo (unsigned int, unsigned int, unsigned int,
5 unsigned int, unsigned int, unsigned int);
7 void
8 bar (unsigned int x, unsigned int y)
10 foo (0, 0, 0, 0, x / y, x % y);
13 /* { dg-final { scan-assembler-times "divb" 1 } } */
14 /* { dg-final { scan-assembler-times "divl" 1 } } */