Commit 30093f04 by Chao-ying Fu Committed by Chao-ying Fu

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
parent b5290908
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> 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
* lib/g++.exp (g++_init): Add host-dependent settings for * lib/g++.exp (g++_init): Add host-dependent settings for
......
/* 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];
}
/* 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];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment