public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] Support -mno-smartmips option
@ 2008-10-23  0:06 Catherine Moore
  2008-10-23  0:56 ` Chao-ying Fu
  0 siblings, 1 reply; 2+ messages in thread
From: Catherine Moore @ 2008-10-23  0:06 UTC (permalink / raw)
  To: gcc-patches; +Cc: Catherine Moore

We document the availability of the -mno-smartmips option, but we don't actually support it.  This 
patch adds support and testcases.  Okay to install?
Thanks,
Catherine

gcc testsuite ChangeLog:

2008-10-22  Catherine Moore  <clm@codesourcery.com>

	* gcc.target/mips/no-smartmips-lwxs.c: New test.
	* gcc.target/mips/no-smartmips-ror-1.c: New test.

gcc ChangeLog:

2008-10-22  Catherine Moore  <clm@codesourcery.com>

	* config/mips/mips.opt (msmartmips): Remove RejectNegative.



Index: testsuite/gcc.target/mips/no-smartmips-lwxs.c
===================================================================
--- testsuite/gcc.target/mips/no-smartmips-lwxs.c       (revision 0)
+++ testsuite/gcc.target/mips/no-smartmips-lwxs.c       (revision 0)
@@ -0,0 +1,8 @@
+/* { dg-do compile } */
+/* { dg-mips-options "-O -mno-smartmips" } */
+
+NOMIPS16 int scaled_indexed_word_load (int a[], int b)
+{
+  return a[b];
+}
+/* { dg-final { scan-assembler-not "\tlwxs\t" } } */
Index: testsuite/gcc.target/mips/no-smartmips-ror-1.c
===================================================================
--- testsuite/gcc.target/mips/no-smartmips-ror-1.c      (revision 0)
+++ testsuite/gcc.target/mips/no-smartmips-ror-1.c      (revision 0)
@@ -0,0 +1,8 @@
+/* { dg-do compile } */
+/* { dg-mips-options "-O -mno-smartmips" } */
+
+NOMIPS16 int rotate_left (unsigned a, unsigned s)
+{
+  return (a << s) | (a >> (32 - s));
+}
+/* { dg-final { scan-assembler-not "\tror\t" } } */
Index: config/mips/mips.opt
===================================================================
--- config/mips/mips.opt        (revision 141033)
+++ config/mips/mips.opt        (working copy)
@@ -241,7 +241,7 @@ Target Report RejectNegative Mask(SINGLE
  Restrict the use of hardware floating-point instructions to 32-bit operations

  msmartmips
-Target Report RejectNegative Mask(SMARTMIPS)
+Target Report Mask(SMARTMIPS)
  Use SmartMIPS instructions

  msoft-float

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] Support -mno-smartmips option
  2008-10-23  0:06 [patch] Support -mno-smartmips option Catherine Moore
@ 2008-10-23  0:56 ` Chao-ying Fu
  0 siblings, 0 replies; 2+ messages in thread
From: Chao-ying Fu @ 2008-10-23  0:56 UTC (permalink / raw)
  To: Catherine Moore; +Cc: gcc-patches

Catherine Moore wrote:
> gcc testsuite ChangeLog:
> 
> 2008-10-22  Catherine Moore  <clm@codesourcery.com>
> 
> * gcc.target/mips/no-smartmips-lwxs.c: New test.
> * gcc.target/mips/no-smartmips-ror-1.c: New test.
> 

  I just updated mips.opt.  But your tests are good.
Thanks!

Regards,
Chao-ying

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-22 22:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-23  0:06 [patch] Support -mno-smartmips option Catherine Moore
2008-10-23  0:56 ` Chao-ying Fu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).