diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/spu/compare-dp.c')
-rw-r--r-- | gcc/testsuite/gcc.target/spu/compare-dp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/spu/compare-dp.c b/gcc/testsuite/gcc.target/spu/compare-dp.c new file mode 100644 index 000000000..cbc7663b9 --- /dev/null +++ b/gcc/testsuite/gcc.target/spu/compare-dp.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-final { scan-assembler-not "__eqdf2" } } */ + +/* Ensure double precision comparisons are always inlined. */ + +int test (double a, double b) __attribute__((noinline)); +int test (double a, double b) +{ + return a == b; +} |