diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/sh/sh4a-sin.c')
-rw-r--r-- | gcc/testsuite/gcc.target/sh/sh4a-sin.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.target/sh/sh4a-sin.c b/gcc/testsuite/gcc.target/sh/sh4a-sin.c index 9f46f60..cd8f078 100644 --- a/gcc/testsuite/gcc.target/sh/sh4a-sin.c +++ b/gcc/testsuite/gcc.target/sh/sh4a-sin.c @@ -1,13 +1,11 @@ /* Verify that we generate single-precision sine and cosine approximate - (fsca) in fast math mode. */ + (fsca) in fast math mode on SH4A with FPU. */ /* { dg-do compile { target "sh*-*-*" } } */ /* { dg-options "-O -ffast-math" } */ -/* { dg-final { scan-assembler "\tfsca\t" } } */ +/* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" "-m4a-single" "-m4a-single-only" } } */ +/* { dg-final { scan-assembler "fsca" } } */ -#if defined __SH4A__ && ! defined __SH4_NOFPU__ #include <math.h> double test(double f) { return sin(f); } -#else -asm ("fsca\t"); -#endif + |