mirror of git://gcc.gnu.org/git/gcc.git
parent
cbb1e3d98c
commit
cbee452f8d
|
|
@ -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++;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue