summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/mips.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/mips.exp')
-rw-r--r--gcc/testsuite/gcc.target/mips/mips.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp
index 526bbdb14f2..832633900c9 100644
--- a/gcc/testsuite/gcc.target/mips/mips.exp
+++ b/gcc/testsuite/gcc.target/mips/mips.exp
@@ -238,6 +238,10 @@ proc dg-mips-options {args} {
} else {
append flags " -msoft-float"
}
+ } elseif {[regexp -- {^-mr10k-cache-barrier=(load|store)} $flag]
+ && $mips_isa < 3
+ && [lsearch -regexp $flags {^(-mips|-march)}] < 0} {
+ append flags " -mips3"
}
}
foreach flag $flags {