diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/mips/dsp-lhx.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/mips/dsp-lhx.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/mips/dsp-lhx.c b/gcc-4.9/gcc/testsuite/gcc.target/mips/dsp-lhx.c new file mode 100644 index 000000000..8fa20a090 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/mips/dsp-lhx.c @@ -0,0 +1,11 @@ +/* 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]; +} |