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

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

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