blob: 5192b98d67a0c01d1dc09b3478621bb36b0ba71d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O2 -m8bit-idiv" } */
extern void foo (long long, long long, long long, long long,
long long, long long);
void
bar (long long x, long long y)
{
foo (0, 0, 0, 0, x / y, x % y);
}
/* { dg-final { scan-assembler-times "divb" 1 } } */
/* { dg-final { scan-assembler-times "idivq" 1 } } */
|