From: Oleg Endo Date: Tue, 16 Dec 2014 21:28:59 +0000 (+0000) Subject: re PR target/53513 ([SH] Add support for fpchg insn and improve fenv support) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e49aee92bb85865aa0512ed5e827c1a93fdcd928;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a21146276be..9e214f98d24 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2014-12-16 Oleg Endo + + 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 PR middle-end/64309 diff --git a/gcc/testsuite/gcc.target/sh/fpchg.c b/gcc/testsuite/gcc.target/sh/fpchg.c deleted file mode 100644 index ad18c898738..00000000000 --- a/gcc/testsuite/gcc.target/sh/fpchg.c +++ /dev/null @@ -1,17 +0,0 @@ -/* 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++; - -} - diff --git a/gcc/testsuite/gcc.target/sh/pr53513-1.c b/gcc/testsuite/gcc.target/sh/pr53513-1.c new file mode 100644 index 00000000000..9e4b3448346 --- /dev/null +++ b/gcc/testsuite/gcc.target/sh/pr53513-1.c @@ -0,0 +1,11 @@ +/* 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; +}