diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/dsp-lhx.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/dsp-lhx.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/dsp-lhx.c b/gcc/testsuite/gcc.target/mips/dsp-lhx.c new file mode 100644 index 000000000..416356f2a --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/dsp-lhx.c @@ -0,0 +1,10 @@ +/* Test MIPS32 DSP LHX instruction */ +/* { dg-do compile } */ +/* { dg-options "-mgp32 -mdsp -O2" } */ + +/* { dg-final { scan-assembler "\tlhx\t" } } */ + +NOMIPS16 signed short test (signed short *a, int index) +{ + return a[index]; +} |