aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2002-10-29 13:47:10 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2002-10-29 13:47:10 +0000
commit02c6a17aefd96ea23dfe2adb28fe6cf358446ad2 (patch)
treeaff9c5fabf7f7c0ff6c3a71efdad443662e67916
parent1862869df973b42e270a7af90f66dbfcd18a93c3 (diff)
downloadgcc-02c6a17aefd96ea23dfe2adb28fe6cf358446ad2.zip
gcc-02c6a17aefd96ea23dfe2adb28fe6cf358446ad2.tar.gz
gcc-02c6a17aefd96ea23dfe2adb28fe6cf358446ad2.tar.bz2
mips.md (extv, [...]): Set size of referenced memory after adjusting to BLKmode.
* config/mips/mips.md (extv, extzv, insv): Set size of referenced memory after adjusting to BLKmode. From-SVN: r58621
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.md3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 49e9ecd..8fc27be 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-29 Richard Sandiford <rsandifo@redhat.com>
+
+ * config/mips/mips.md (extv, extzv, insv): Set size of referenced
+ memory after adjusting to BLKmode.
+
2002-10-29 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.h (MASK_*): New.
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index a1828f8..b783c4f 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -4871,6 +4871,7 @@ move\\t%0,%z4\\n\\
/* Change the mode to BLKmode for aliasing purposes. */
operands[1] = adjust_address (operands[1], BLKmode, 0);
+ set_mem_size (operands[1], GEN_INT (INTVAL (operands[2]) / BITS_PER_UNIT));
/* Otherwise, emit a l[wd]l/l[wd]r pair to load the value. */
if (INTVAL (operands[2]) == 64)
@@ -4919,6 +4920,7 @@ move\\t%0,%z4\\n\\
/* Change the mode to BLKmode for aliasing purposes. */
operands[1] = adjust_address (operands[1], BLKmode, 0);
+ set_mem_size (operands[1], GEN_INT (INTVAL (operands[2]) / BITS_PER_UNIT));
/* Otherwise, emit a lwl/lwr pair to load the value. */
if (INTVAL (operands[2]) == 64)
@@ -4967,6 +4969,7 @@ move\\t%0,%z4\\n\\
/* Change the mode to BLKmode for aliasing purposes. */
operands[0] = adjust_address (operands[0], BLKmode, 0);
+ set_mem_size (operands[0], GEN_INT (INTVAL (operands[1]) / BITS_PER_UNIT));
/* Otherwise, emit a s[wd]l/s[wd]r pair to load the value. */
if (INTVAL (operands[1]) == 64)