diff options
author | Chris Demetriou <cgd@broadcom.com> | 2004-02-13 04:55:41 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@gcc.gnu.org> | 2004-02-12 20:55:41 -0800 |
commit | d349192c3892455e0d54147055f8e03fa120c7a0 (patch) | |
tree | f328d9bb4d12394faeeea34017fdb93d736c2048 | |
parent | f7dc0dc586e8c26a972051ad3348db22fe59ae05 (diff) | |
download | gcc-d349192c3892455e0d54147055f8e03fa120c7a0.zip gcc-d349192c3892455e0d54147055f8e03fa120c7a0.tar.gz gcc-d349192c3892455e0d54147055f8e03fa120c7a0.tar.bz2 |
mips.md (casesi_internal, [...]): Use ".set macro" to avoid warnings about multi-instruction macros...
2004-02-12 Chris Demetriou <cgd@broadcom.com>
* config/mips/mips.md (casesi_internal, casesi_internal_di):
Use ".set macro" to avoid warnings about multi-instruction
macros, since they're intentional.
From-SVN: r77749
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/mips/mips.md | 22 |
2 files changed, 24 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7d843f9..b0b659e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-02-12 Chris Demetriou <cgd@broadcom.com> + + * config/mips/mips.md (casesi_internal, casesi_internal_di): + Use ".set macro" to avoid warnings about multi-instruction + macros, since they're intentional. + 2004-02-12 Geoffrey Keating <geoffk@apple.com> * config/darwin.h: Add include guards. Remove old, now incorrect, diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index a1b083f..3caa677 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -8123,8 +8123,15 @@ srl\t%M0,%M1,%2\n\ (clobber (match_operand:SI 2 "register_operand" "=d")) (clobber (reg:SI 31))] "TARGET_EMBEDDED_PIC" - "%(bal\t%S1\;sll\t%2,%0,2\n%~%S1:\;addu\t%2,%2,$31%)\;\ -lw\t%2,%1-%S1(%2)\;addu\t%2,%2,$31\;%*j\t%2%/" + { + if (set_nomacro) + return "%(bal\\t%S1\;sll\\t%2,%0,2\\n%~%S1:\;addu\\t%2,%2,$31%)\;\\ +.set macro\;lw\\t%2,%1-%S1(%2)\;.set nomacro\;addu\\t%2,%2,$31\\n\\t%*j\\t%2%/"; + return + "%(bal\\t%S1\;sll\\t%2,%0,2\\n%~%S1:\;addu\\t%2,%2,$31%)\;\\ +lw\\t%2,%1-%S1(%2)\;addu\\t%2,%2,$31\\n\\t%*j\\t%2%/" + ; + } [(set_attr "type" "jump") (set_attr "mode" "none") (set_attr "length" "24")]) @@ -8140,8 +8147,15 @@ lw\t%2,%1-%S1(%2)\;addu\t%2,%2,$31\;%*j\t%2%/" (clobber (match_operand:DI 2 "register_operand" "=d")) (clobber (reg:DI 31))] "TARGET_EMBEDDED_PIC" - "%(bal\t%S1\;sll\t%2,%0,3\n%~%S1:\;daddu\t%2,%2,$31%)\;\ -ld\t%2,%1-%S1(%2)\;daddu\t%2,%2,$31\;%*j\t%2%/" + { + if (set_nomacro) + return "%(bal\\t%S1\;sll\\t%2,%0,3\\n%~%S1:\;daddu\\t%2,%2,$31%)\;\\ +.set macro\;ld\\t%2,%1-%S1(%2)\;.set nomacro\;daddu\\t%2,%2,$31\\n\\t%*j\\t%2%/"; + return + "%(bal\\t%S1\;sll\\t%2,%0,3\\n%~%S1:\;daddu\\t%2,%2,$31%)\;\\ +ld\\t%2,%1-%S1(%2)\;daddu\\t%2,%2,$31\\n\\t%*j\\t%2%/" + ; + } [(set_attr "type" "jump") (set_attr "mode" "none") (set_attr "length" "24")]) |