2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / divmod-8.c
blobeb09a6d7b2c006b9d83b2a4493d24504eb89c5c8
1 /* { dg-do compile { target { ! { ia32 } } } } */
2 /* { dg-options "-O2 -m8bit-idiv" } */
4 extern void foo (long long, long long, long long, long long,
5 long long, long long);
7 void
8 bar (long long x, long long 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 "idivq" 1 } } */