aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/mips32-dspr2-type.c
blob: 5552e8b720545ca996fe070149f6471fd9d26806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test MIPS32 DSP REV 2 instructions */
/* { dg-do compile } */
/* { dg-mips-options "-march=mips32r2 -mdspr2" } */
/* { dg-final { scan-assembler "\tmul.ph\t" } } */

typedef short v2hi __attribute__ ((vector_size(4)));

v2hi mul_v2hi (v2hi a, v2hi b)
{
  return a * b;
}