summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/dsp-lhx.c
blob: 416356f2a0307741d194eac855ceb58379350181 (plain)
1
2
3
4
5
6
7
8
9
10
/* Test MIPS32 DSP LHX instruction */
/* { dg-do compile } */
/* { dg-options "-mgp32 -mdsp -O2" } */

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

NOMIPS16 signed short test (signed short *a, int index)
{
  return a[index];
}