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