aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorChris Demetriou <cgd@broadcom.com>2002-02-08 22:51:30 +0000
committerChris Demetriou <cgd@gcc.gnu.org>2002-02-08 14:51:30 -0800
commit246a46e002d212e2a144c48779a793e406dc9538 (patch)
tree17faff62b20e4c7d15edc2fd40f2465b4e8129e0 /gcc
parent6a5ea3f4ab7b16f12da8920a4cdd22f7eba52725 (diff)
downloadgcc-246a46e002d212e2a144c48779a793e406dc9538.zip
gcc-246a46e002d212e2a144c48779a793e406dc9538.tar.gz
gcc-246a46e002d212e2a144c48779a793e406dc9538.tar.bz2
mips.md (casesi_internal, [...]): Protect jump delay slot instructions with .set noreorder and .set nomacro.
2002-02-08 Chris Demetriou <cgd@broadcom.com> * config/mips/mips.md (casesi_internal, casesi_internal_di): Protect jump delay slot instructions with .set noreorder and .set nomacro. [Also, fix date on my previous checkin to the ChangeLog file. It should have been today's date.] From-SVN: r49624
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/mips/mips.md4
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5736247..c831ae0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,10 @@
-2002-02-07 Chris Demetriou <cgd@broadcom.com>
+2002-02-08 Chris Demetriou <cgd@broadcom.com>
+
+ * config/mips/mips.md (casesi_internal, casesi_internal_di):
+ Protect jump delay slot instructions with .set noreorder and
+ .set nomacro.
+
+2002-02-08 Chris Demetriou <cgd@broadcom.com>
* config/mips/mips.md (casesi_internal_di): Calculate
the index into the target offset table correctly.
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index ba3e975..19049af 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -9476,7 +9476,7 @@ move\\t%0,%z4\\n\\
(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"
+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")])
@@ -9493,7 +9493,7 @@ lw\\t%2,%1-%S1(%2)\;addu\\t%2,%2,$31\;j\\t%2"
(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"
+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")])