* gcc.target/mips/mips.exp (mips_option_tests(-mips16)): Make the
sequence PC-relative.
From-SVN: r143382
+2009-01-14 Adam Nemet <anemet@caviumnetworks.com>
+
+ * gcc.target/mips/mips.exp (mips_option_tests(-mips16)): Make the
+ sequence PC-relative.
+
2009-01-14 Mark Mitchell <mark@codesourcery.com>
* gcc.target/arm/long-calls-1.c: Tolerate the lack of sibling
# on a target that supports OPTION.
set mips_option_tests(-mips16) {
move $2,$31
- jal 1f
- b 2f
- .align 2
+ bal 1f
.set mips16
-1:
jr $31
.set nomips16
.align 2
-2:
+1:
+ ori $3,$31,1
+ jalr $3
move $31,$2
}
set mips_option_tests(-mpaired-single) {