diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/movdf-3.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/movdf-3.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/movdf-3.c b/gcc/testsuite/gcc.target/mips/movdf-3.c new file mode 100644 index 00000000000..5db52c9487b --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/movdf-3.c @@ -0,0 +1,13 @@ +/* Check that we move DFmode values using mtc1 between FP and GP. */ +/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ +/* { dg-options "-mabi=32 -mfp32 isa=2" } */ + +void bar (void); + +double +foo (int x, double a) +{ + return a; +} +/* { dg-final { scan-assembler-times "mtc1" 2 } } */ +/* { dg-final { scan-assembler-not "ldc1" } } */ |