This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH,committed] FIx MIPS lxc1-sxc1 tests for soft-float configurations
- From: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- To: "'gcc-patches at gcc dot gnu dot org' (gcc-patches at gcc dot gnu dot org)" <gcc-patches at gcc dot gnu dot org>
- Cc: "Moore, Catherine (Catherine_Moore at mentor dot com)" <Catherine_Moore at mentor dot com>
- Date: Thu, 9 Mar 2017 17:20:57 +0000
- Subject: [PATCH,committed] FIx MIPS lxc1-sxc1 tests for soft-float configurations
- Authentication-results: sourceware.org; auth=none
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