Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / divmod-7.c
blobde4a1fb9399dcbea46fc13a7cf7839e4ce158f9e
1 /* { dg-do compile { target { ! { ia32 } } } } */
2 /* { dg-options "-O2 -m8bit-idiv" } */
4 extern void abort (void);
6 void
7 test (long long x, long long y, long long q, long long 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 "idivq" 1 } } */