From: Maciej W. Rozycki Date: Tue, 15 Nov 2016 14:57:30 +0000 (+0000) Subject: MIPS/GCC/test: Implement `-mcode-readable=yes' option test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cbfb2091148947e85bbe2e3a4093541a1e99110;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index eb1ec694235..e7e78506ef2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-11-15 Maciej W. Rozycki + + * gcc.target/mips/mips.exp (mips_option_tests): Add + `-mcode-readable=yes' array element. + 2016-11-15 Maciej W. Rozycki * gcc.target/mips/mips.exp (mips_option_tests): Add diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index c376bf08cbb..97b2aea8f1c 100644 --- a/gcc/testsuite/gcc.target/mips/mips.exp +++ b/gcc/testsuite/gcc.target/mips/mips.exp @@ -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 } {