rt_gccstream/gcc/testsuite/gcc.target/mips/dsp-no-lhx.c

11 lines
239 B
C

/* 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];
}