The lxc1-sxc1 tests fundamentally require hard-float to test the
relevant instruction usage.  This patch adds -mhard-float to force
it on all configurations.

gcc/testsuite/

        * gcc.target/mips/lxc1-sxc1-1.c: Use -mhard-float.
        * gcc.target/mips/lxc1-sxc1-2.c: Likewise.

Committed to trunk.

Matthew

diff --git a/gcc/testsuite/gcc.target/mips/lxc1-sxc1-1.c 
b/gcc/testsuite/gcc.target/mips/lxc1-sxc1-1.c
index f455eb8..7272258 100644
--- a/gcc/testsuite/gcc.target/mips/lxc1-sxc1-1.c
+++ b/gcc/testsuite/gcc.target/mips/lxc1-sxc1-1.c
@@ -1,4 +1,4 @@
-/* { dg-options "(HAS_LXC1) -mno-lxc1-sxc1" } */
+/* { dg-options "(HAS_LXC1) -mhard-float -mno-lxc1-sxc1" } */
 /* { dg-final { scan-assembler-not "\tldxc1\t" } } */
 /* { dg-final { scan-assembler-not "\tsdxc1\t" } } */
 
diff --git a/gcc/testsuite/gcc.target/mips/lxc1-sxc1-2.c 
b/gcc/testsuite/gcc.target/mips/lxc1-sxc1-2.c
index dfbf6b5..317252b 100644
--- a/gcc/testsuite/gcc.target/mips/lxc1-sxc1-2.c
+++ b/gcc/testsuite/gcc.target/mips/lxc1-sxc1-2.c
@@ -1,4 +1,4 @@
-/* { dg-options "(HAS_LXC1) -mlxc1-sxc1" } */
+/* { dg-options "(HAS_LXC1) -mhard-float -mlxc1-sxc1" } */
 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
 /* { dg-final { scan-assembler "\tldxc1\t" } } */
 
-- 
2.2.1

Reply via email to