Commit 6b4b59fc by Matthew Fortune Committed by Matthew Fortune

MIPS: Testsuite fixes for soft-float configurations

gcc/testuite/

	* gcc.target/mips/mips.exp: Add support for -msoft-float
	and -mhard-float options.  Ensure that explicit -mfp*
	options imply both -mhard-float and -mdouble-float.
	* gcc.target/mips/call-clobbered-1.c: Add -mhard-float to the
	compile options.

From-SVN: r218047
parent e8c504f1
2014-11-25 Matthew Fortune <matthew.fortune@imgtec.com>
* gcc.target/mips/mips.exp: Add support for -msoft-float and
-mhard-float options. Ensure that explicit -mfp* options imply
both -mhard-float and -mdouble-float.
* gcc.target/mips/call-clobbered-1.c: Add -mhard-float to the
compile options.
2014-11-25 Paolo Carlini <paolo.carlini@oracle.com> 2014-11-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/63786 PR c++/63786
......
/* Check that we handle call-clobbered FPRs correctly. */ /* Check that we handle call-clobbered FPRs correctly. */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* { dg-options "isa>=2 -mabi=32 -ffixed-f0 -ffixed-f1 -ffixed-f2 -ffixed-f3 -ffixed-f4 -ffixed-f5 -ffixed-f6 -ffixed-f7 -ffixed-f8 -ffixed-f9 -ffixed-f10 -ffixed-f11 -ffixed-f12 -ffixed-f13 -ffixed-f14 -ffixed-f15 -ffixed-f16 -ffixed-f17 -ffixed-f18 -ffixed-f19" } */ /* { dg-options "isa>=2 -mabi=32 -mhard-float -ffixed-f0 -ffixed-f1 -ffixed-f2 -ffixed-f3 -ffixed-f4 -ffixed-f5 -ffixed-f6 -ffixed-f7 -ffixed-f8 -ffixed-f9 -ffixed-f10 -ffixed-f11 -ffixed-f12 -ffixed-f13 -ffixed-f14 -ffixed-f15 -ffixed-f16 -ffixed-f17 -ffixed-f18 -ffixed-f19" } */
void bar (void); void bar (void);
double a; double a;
......
...@@ -234,6 +234,7 @@ set mips_option_groups { ...@@ -234,6 +234,7 @@ set mips_option_groups {
dump_pattern "-dp" dump_pattern "-dp"
endianness "-E(L|B)|-me(l|b)" endianness "-E(L|B)|-me(l|b)"
float "-m(hard|soft)-float" float "-m(hard|soft)-float"
fpu "-m(double|single)-float"
forbid_cpu "forbid_cpu=.*" forbid_cpu "forbid_cpu=.*"
fp "-mfp(32|xx|64)" fp "-mfp(32|xx|64)"
gp "-mgp(32|64)" gp "-mgp(32|64)"
...@@ -858,6 +859,8 @@ proc mips-dg-finish {} { ...@@ -858,6 +859,8 @@ proc mips-dg-finish {} {
# | | # | |
# -modd-spreg -mno-odd-spreg # -modd-spreg -mno-odd-spreg
# | | # | |
# -mdouble-float -msingle-float
# | |
# -mabs=2008/-mabs=legacy <no option> # -mabs=2008/-mabs=legacy <no option>
# | | # | |
# -mhard-float -msoft-float # -mhard-float -msoft-float
...@@ -947,7 +950,12 @@ proc mips-dg-options { args } { ...@@ -947,7 +950,12 @@ proc mips-dg-options { args } {
mips_option_dependency options "-mips3d" "-mpaired-single" mips_option_dependency options "-mips3d" "-mpaired-single"
mips_option_dependency options "-mpaired-single" "-mfp64" mips_option_dependency options "-mpaired-single" "-mfp64"
mips_option_dependency options "-mfp64" "-mhard-float" mips_option_dependency options "-mfp64" "-mhard-float"
mips_option_dependency options "-mfp32" "-mhard-float"
mips_option_dependency options "-mfpxx" "-mhard-float"
mips_option_dependency options "-mfp64" "-modd-spreg" mips_option_dependency options "-mfp64" "-modd-spreg"
mips_option_dependency options "-mfp64" "-mdouble-float"
mips_option_dependency options "-mfp32" "-mdouble-float"
mips_option_dependency options "-mfpxx" "-mdouble-float"
mips_option_dependency options "-mabs=2008" "-mhard-float" mips_option_dependency options "-mabs=2008" "-mhard-float"
mips_option_dependency options "-mabs=legacy" "-mhard-float" mips_option_dependency options "-mabs=legacy" "-mhard-float"
mips_option_dependency options "-mrelax-pic-calls" "-mno-plt" mips_option_dependency options "-mrelax-pic-calls" "-mno-plt"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment