summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/div-3.c
blob: b9ae3684ef4603909328b41ac962f48c5be8bc36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-options "-mgp64 (-mips16)" } */
/* { dg-final { scan-assembler "\tddiv\t" } } */
/* { dg-final { scan-assembler-not "\tmflo\t" } } */
/* { dg-final { scan-assembler "\tmfhi\t" } } */

typedef int DI __attribute__((mode(DI)));

MIPS16 DI
f (DI x, DI y)
{
  return x % y;
}