summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/octeon-dmul-3.c
blob: 01f0eefca8001260ac577b7ef051cdc119a40d1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Use DMUL for widening multiplication too.  */
/* { dg-options "-O -march=octeon -mgp64" } */
/* { dg-final { scan-assembler-times "\tdmul\t" 2 } } */
/* { dg-final { scan-assembler-not "\td?mult\t" } } */
/* { dg-final { scan-assembler-times "\tdext\t" 2 } } */

NOMIPS16 long long
f (int i, int j)
{
  i++;
  return (long long) i * j;
}

NOMIPS16 unsigned long long
g (unsigned int i, unsigned int j)
{
  i++;
  return (unsigned long long) i * j;
}