2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / divmod-7.c
blob77bca6cb47449bf441ae63d33a8e314845f7bb60
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 } } */