Commit 0ff67613 by Oleg Endo

re PR target/53511 (SH Target: Add support for fma patterns)

	PR target/53511
	* gcc.target/sh/pr51340-1.c: Delete obsolete test case.
	* gcc.target/sh/pr51340-2.c: Likewise.
	* gcc.target/sh/pr51340-3.c: Likewise.

From-SVN: r188471
parent 126294f4
2012-06-12 Oleg Endo <olegendo@gcc.gnu.org>
PR target/53511
* gcc.target/sh/pr51340-1.c: Delete obsolete test case.
* gcc.target/sh/pr51340-2.c: Likewise.
* gcc.target/sh/pr51340-3.c: Likewise.
2012-06-12 Michael Matz <matz@suse.de>
* gcc.dg/torture/alias-1.c: New test.
......
/* Check that the fmac insn is generated when -funsafe-math-optimizations
is specified. */
/* { dg-do compile { target "sh*-*-*" } } */
/* { dg-options "-O1 -funsafe-math-optimizations" } */
/* { dg-skip-if "" { "sh*-*-*" } { "-m1" "-m2" "-m4al" "*nofpu" "-m4-340*" "-m4-400*" "-m4-500*" "-m5*" } { "" } } */
/* { dg-final { scan-assembler "fmac" } } */
float
test_func (float a, float b, float c, float d, float e, float f)
{
return a * b + c * d + e * f;
}
/* Check that the fmac insn is not generated when -mno-fused-madd is specified. */
/* { dg-do compile { target "sh*-*-*" } } */
/* { dg-options "-O1 -funsafe-math-optimizations -mno-fused-madd" } */
/* { dg-skip-if "" { "sh*-*-*" } { "-m1" "-m2" "-m4al" "*nofpu" "-m4-340*" "-m4-400*" "-m4-500*" "-m5*" } { "" } } */
/* { dg-final { scan-assembler-not "fmac" } } */
float
test_func (float a, float b, float c, float d, float e, float f)
{
return a * b + c * d + e * f;
}
/* Check that the fmac insn is generated when -mfused-madd is specified. */
/* { dg-do compile { target "sh*-*-*" } } */
/* { dg-options "-O1 -mfused-madd" } */
/* { dg-skip-if "" { "sh*-*-*" } { "-m1" "-m2" "-m4al" "*nofpu" "-m4-340*" "-m4-400*" "-m4-500*" "-m5*" } { "" } } */
/* { dg-final { scan-assembler "fmac" } } */
float
test_func (float a, float b, float c, float d, float e, float f)
{
return a * b + c * d + e * f;
}
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