Commit e49aee92 by Oleg Endo

re PR target/53513 ([SH] Add support for fpchg insn and improve fenv support)

gcc/testsuite/
	PR target/53513
	* gcc.target/sh/fpchg.c: Rename to ...
	* gcc.target/sh/pr53513-1.c: ... this.  Adjust test case to work for
	-m4a and -m4a-single.

From-SVN: r218793
parent c61819ff
2014-12-16 Oleg Endo <olegendo@gcc.gnu.org>
PR target/53513
* gcc.target/sh/fpchg.c: Rename to ...
* gcc.target/sh/pr53513-1.c: ... this. Adjust test case to work for
-m4a and -m4a-single.
2014-12-16 Marek Polacek <polacek@redhat.com>
PR middle-end/64309
......
/* Check that fpchg is used to switch precision. */
/* { dg-do compile } */
/* { dg-final { scan-assembler "fpchg" } } */
/* { dg-final { scan-assembler-not "fpscr" } } */
/* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" } } */
extern float c;
void
foo(int j)
{
while (j--)
c++;
}
/* Check that fpchg is used to switch FPSCR.PR mode on SH4A. */
/* { dg-additional-options "-O" } */
/* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" "-m4a-single" } } */
/* { dg-final { scan-assembler "fpchg" } } */
/* { dg-final { scan-assembler-not "fpscr" } } */
double
foo (float a, float b, double c)
{
return (a * b) + c;
}
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