Message ID | alpine.DEB.2.20.17.1611110740390.10580@tp.orcam.me.uk |
---|---|
State | Accepted |
Headers | show |
Maciej Rozycki <Maciej.Rozycki@imgtec.com> writes: > gcc/testsuite/ > * gcc.target/mips/mips.exp (mips_option_tests): Add > `-mcode-readable=yes' array element. > --- > OK to apply? OK, thanks. Matthew
Index: gcc/gcc/testsuite/gcc.target/mips/mips.exp =================================================================== --- gcc.orig/gcc/testsuite/gcc.target/mips/mips.exp 2016-11-09 18:56:48.283197623 +0000 +++ gcc/gcc/testsuite/gcc.target/mips/mips.exp 2016-11-11 08:49:53.345912380 +0000 @@ -401,6 +401,27 @@ set mips_option_tests(-mdspr2) { .set dspr2 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. proc mips_canonicalize_option { option } {