summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/dsp-no-lhx.c
blob: a37c42f1a9000159b139c7cf2b156043074338fd (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-not "\tlhx\t" } } */

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