summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/pr88349.c
blob: f070d2442eb3ae3cae4c78247a3df1948a0e8d70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-mel -mabi=32 -march=mips64r2 -fexpensive-optimizations" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */

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

__attribute__((mips16)) SI
f (SI x, SI y)
{
  return ((DI) x * y) >> 32;
}

/* { dg-final { scan-assembler-not "\tsw\t" } } */