mips.md (extv, [...]): Set size of referenced memory after adjusting to BLKmode.
authorRichard Sandiford <rsandifo@redhat.com>
Tue, 29 Oct 2002 13:47:10 +0000 (13:47 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 29 Oct 2002 13:47:10 +0000 (13:47 +0000)
* config/mips/mips.md (extv, extzv, insv): Set size of referenced
memory after adjusting to BLKmode.

From-SVN: r58621

gcc/ChangeLog
gcc/config/mips/mips.md

index 49e9ecdc2589674061f2ee175a0dccd90893b4f7..8fc27beda235472e4134005c1b40e1ecf3327dde 100644 (file)
@@ -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.
index a1828f8ff2de86fb3b0579f2be3f1dba93943b97..b783c4f26df2f1e45524ae1953aa494b89179331 100644 (file)
@@ -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)