Commit 765a514d by Andrew Bennett Committed by Andrew Bennett

MIPS: In mips.exp allow the post-arch code to be run when the pre-arch code…

MIPS: In mips.exp allow the post-arch code to be run when the pre-arch code increases the isa_rev to mips32r6 or greater.

testsuite/
	* gcc.target/mips/mips.exp (mips-dg-options): Allow the post-arch
	code to be run when the pre-arch code increases the isa_rev to
	mips32r6 or greater.

From-SVN: r225813
parent 6dba0113
2015-07-15 Andrew Bennett <andrew.bennett@imgtec.com>
* gcc.target/mips/mips.exp (mips-dg-options): Allow the post-arch
code to be run when the pre-arch code increases the isa_rev to
mips32r6 or greater.
2015-07-15 Richard Biener <rguenther@suse.de> 2015-07-15 Richard Biener <rguenther@suse.de>
* lib/c-torture.exp (C_TORTURE_OPTIONS): Remove * lib/c-torture.exp (C_TORTURE_OPTIONS): Remove
......
...@@ -1045,6 +1045,7 @@ proc mips-dg-options { args } { ...@@ -1045,6 +1045,7 @@ proc mips-dg-options { args } {
set arch [mips_option options arch] set arch [mips_option options arch]
set isa [mips_arch_info $arch isa] set isa [mips_arch_info $arch isa]
set isa_rev [mips_arch_info $arch isa_rev] set isa_rev [mips_arch_info $arch isa_rev]
set orig_isa_rev $isa_rev
# If the test forces a 32-bit architecture, force -mgp32. # If the test forces a 32-bit architecture, force -mgp32.
# Force the current -mgp setting otherwise; if we don't, # Force the current -mgp setting otherwise; if we don't,
...@@ -1279,8 +1280,11 @@ proc mips-dg-options { args } { ...@@ -1279,8 +1280,11 @@ proc mips-dg-options { args } {
} }
# Handle dependencies between the arch option and the post-arch options. # Handle dependencies between the arch option and the post-arch options.
# This should mirror the arch and pre-arch code above. # This should mirror the arch and pre-arch code above. For pre-r6
if { $arch_test_option_p } { # architectures this only needs to be done when we've moved down
# to a lower architecture and might need to turn features off,
# but moving up from pre-r6 to r6 can remove features too.
if { $arch_test_option_p || ($orig_isa_rev < 6 && $isa_rev >= 6) } {
if { $isa < 2 } { if { $isa < 2 } {
mips_make_test_option options "-mno-branch-likely" mips_make_test_option options "-mno-branch-likely"
mips_make_test_option options "-mno-fix-r10000" mips_make_test_option options "-mno-fix-r10000"
......
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