Hi, microMIPS is not supported on pre-R2 architectures, but the testsuite allows it to be used on pre-R2 architectures, which results in test failures.
This patch makes the testsuite upgrade to R2 if -mmicromips is used in a test. Tested with mips-mti-elf. Regards, Toma gcc/testsuite/ChangeLog: * gcc.target/mips/mips.exp (mips-dg-options): Upgrade to R2 for -mmicromips. diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index 3d04d2f..d0f4037 100644 --- a/gcc/testsuite/gcc.target/mips/mips.exp +++ b/gcc/testsuite/gcc.target/mips/mips.exp @@ -1147,7 +1147,8 @@ proc mips-dg-options { args } { || [mips_have_test_option_p options "HAS_MADDPS"] || [mips_have_test_option_p options "-mdspr2"] || [mips_have_test_option_p options "-mnan=2008"] - || [mips_have_test_option_p options "-mabs=2008"]) } { + || [mips_have_test_option_p options "-mabs=2008"] + || [mips_have_test_option_p options "-mmicromips"]) } { if { $gp_size == 32 } { mips_make_test_option options "-mips32r2" } else {