From f05a874c256b90e0c45815b657ef0b9682e26189 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Tue, 15 Nov 2016 14:54:06 +0000 Subject: [PATCH] MIPS/GCC/test: Implement `-mmicromips' option test gcc/testsuite/ * gcc.target/mips/mips.exp (mips_option_tests): Add `-mmicromips' array element. From-SVN: r242421 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/mips/mips.exp | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dcb220d036a..eb1ec694235 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 + `-mmicromips' array element. + 2016-11-15 Michael Matz PR missed-optimization/77881 diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index e22d782515f..c376bf08cbb 100644 --- a/gcc/testsuite/gcc.target/mips/mips.exp +++ b/gcc/testsuite/gcc.target/mips/mips.exp @@ -360,6 +360,19 @@ set mips_option_tests(-mips16) { jalr $3 move $31,$2 } +set mips_option_tests(-mmicromips) { + move $2,$31 + bal 1f + .set push + .set micromips + jraddiusp 0 + .set pop + .align 2 +1: + ori $3,$31,1 + jalr $3 + move $31,$2 +} set mips_option_tests(-mpaired-single) { .set mips64 lui $2,0x3f80 -- 2.30.2