aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/mult-9.c
blob: aa2ededa67aa8904d430a197c4e9b71ae0b73e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-options "-O2 -mgp64 (-mips16)" } */
/* { dg-final { scan-assembler "\tmultu\t" } } */
/* { dg-final { scan-assembler "\tmflo\t" } } */
/* { dg-final { scan-assembler "\tmfhi\t" } } */
/* { dg-final { scan-assembler-times "\tdsll\t" 2 } } */
/* { dg-final { scan-assembler "\tdsrl\t" } } */

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

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