MIPS/GCC/test: Implement `-mcode-readable=yes' option test
gcc/testsuite/ * gcc.target/mips/mips.exp (mips_option_tests): Add `-mcode-readable=yes' array element. From-SVN: r242423
This commit is contained in:
parent
fd338b1364
commit
2cbfb20911
@ -1,3 +1,8 @@
|
|||||||
|
2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
|
||||||
|
|
||||||
|
* gcc.target/mips/mips.exp (mips_option_tests): Add
|
||||||
|
`-mcode-readable=yes' array element.
|
||||||
|
|
||||||
2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
|
2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
|
||||||
|
|
||||||
* gcc.target/mips/mips.exp (mips_option_tests): Add
|
* gcc.target/mips/mips.exp (mips_option_tests): Add
|
||||||
|
@ -401,6 +401,27 @@ set mips_option_tests(-mdspr2) {
|
|||||||
.set dspr2
|
.set dspr2
|
||||||
prepend $2,$3,11
|
prepend $2,$3,11
|
||||||
}
|
}
|
||||||
|
set mips_option_tests(-mcode-readable=yes) {
|
||||||
|
move $2,$31
|
||||||
|
bal 1f
|
||||||
|
.set mips16
|
||||||
|
la $3,0f
|
||||||
|
lw $3,($3)
|
||||||
|
jr $31
|
||||||
|
0:
|
||||||
|
.word 0xfacebead
|
||||||
|
.set nomips16
|
||||||
|
.align 2
|
||||||
|
1:
|
||||||
|
ori $3,$31,1
|
||||||
|
jalr $3
|
||||||
|
li $4,0xfacebead
|
||||||
|
beq $3,$4,2f
|
||||||
|
break
|
||||||
|
b .
|
||||||
|
2:
|
||||||
|
move $31,$2
|
||||||
|
}
|
||||||
|
|
||||||
# Canonicalize command-line option OPTION.
|
# Canonicalize command-line option OPTION.
|
||||||
proc mips_canonicalize_option { option } {
|
proc mips_canonicalize_option { option } {
|
||||||
|
Loading…
Reference in New Issue
Block a user