From-SVN: r212231
This commit is contained in:
Christian Bruel 2014-07-02 15:15:08 +02:00
parent cbb1e3d98c
commit cbee452f8d
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
/* 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++;
}