blob: 8fa20a09090514fe53a3f2a3fb0b75bfec313cb2 [file] [log] [blame]
/* Test MIPS32 DSP LHX instruction */
/* { dg-do compile } */
/* { dg-options "-mgp32 -mdsp" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* { dg-final { scan-assembler "\tlhx\t" } } */
NOMIPS16 signed short test (signed short *a, int index)
{
return a[index];
}