mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-23 18:11:15 +08:00
dsp-lhx.c: New test.
2009-11-30 Chao-ying Fu <fu@mips.com> * gcc.target/mips/dsp-lhx.c: New test. * gcc.target/mips/dsp-no-lhx.c: New test. From-SVN: r154862
This commit is contained in:
parent
b5290908a2
commit
30093f0492
@ -1,3 +1,8 @@
|
||||
2009-11-30 Chao-ying Fu <fu@mips.com>
|
||||
|
||||
* gcc.target/mips/dsp-lhx.c: New test.
|
||||
* gcc.target/mips/dsp-no-lhx.c: New test.
|
||||
|
||||
2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
|
||||
|
||||
* lib/g++.exp (g++_init): Add host-dependent settings for
|
||||
|
10
gcc/testsuite/gcc.target/mips/dsp-lhx.c
Normal file
10
gcc/testsuite/gcc.target/mips/dsp-lhx.c
Normal file
@ -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];
|
||||
}
|
10
gcc/testsuite/gcc.target/mips/dsp-no-lhx.c
Normal file
10
gcc/testsuite/gcc.target/mips/dsp-no-lhx.c
Normal file
@ -0,0 +1,10 @@
|
||||
/* 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];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user