This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] MIPS: Do not generate micromips code for the no-smartmips-lwxs.c testcase
- From: Andrew Bennett <Andrew dot Bennett at imgtec dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Matthew Fortune <Matthew dot Fortune at imgtec dot com>, "Moore, Catherine (Catherine_Moore at mentor dot com)" <Catherine_Moore at mentor dot com>
- Date: Mon, 6 Jul 2015 13:34:09 +0000
- Subject: [PATCH] MIPS: Do not generate micromips code for the no-smartmips-lwxs.c testcase
- Authentication-results: sourceware.org; auth=none
Hi,
The LWXS instruction is part of the micromips ISA which means it is
valid to generate it for the no-smartmips-lwxs.c testcase. I have
updated the dg-options for the test to ensure that it does not
generate micromips code.
I have tested this on the mips-mti-elf target using
mips32r2/{-mno-micromips/-mmicromips} test options and there are no new
regressions.
The patch and ChangeLog are below.
Ok to commit?
Many thanks,
Andrew
testsuite/
* gcc.target/mips/no-smartmips-lwxs.c: Add -mno-micromips to dg-options.
diff --git a/gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c b/gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c
index ecf856e..6701a1c 100644
--- a/gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c
+++ b/gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-mno-smartmips" } */
+/* { dg-options "-mno-smartmips -mno-micromips" } */
NOMIPS16 int scaled_indexed_word_load (int a[], int b)
{