1/* Test MIPS32 DSP LHX instruction */
2/* { dg-do compile } */
3/* { dg-options "-mgp32 -mdsp -O2" } */
4
5/* { dg-final { scan-assembler-not "\tlhx\t" } } */
6
7NOMIPS16 unsigned short test (unsigned short *a, int index)
8{
9  return a[index];
10}
11