Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / mips / dsp-no-lhx.c
1 /* Test MIPS32 DSP LHX instruction */
2 /* { dg-do compile } */
3 /* { dg-options "-mgp32 -mdsp" } */
4
5 /* { dg-final { scan-assembler-not "\tlhx\t" } } */
6
7 NOMIPS16 unsigned short test (unsigned short *a, int index)
8 {
9   return a[index];
10 }