diff mbox

[committed] FIx MIPS lxc1-sxc1 tests for soft-float configurations

Message ID 6D39441BF12EF246A7ABCE6654B0235380BA3E3F@hhmail02.hh.imgtec.org
State New
Headers show

Commit Message

Matthew Fortune March 9, 2017, 5:20 p.m. UTC
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 mbox

Patch

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" } } */