+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>
* lib/c-torture.exp (C_TORTURE_OPTIONS): Remove
set arch [mips_option options arch]
set isa [mips_arch_info $arch isa]
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.
# Force the current -mgp setting otherwise; if we don't,
}
# Handle dependencies between the arch option and the post-arch options.
- # This should mirror the arch and pre-arch code above.
- if { $arch_test_option_p } {
+ # This should mirror the arch and pre-arch code above. For pre-r6
+ # 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 } {
mips_make_test_option options "-mno-branch-likely"
mips_make_test_option options "-mno-fix-r10000"