* rs6000.md (movqi, movhi): Add CONSTANT_P_RTX.
authorDavid Edelsohn <edelsohn@mhpcc.edu>
Thu, 20 Aug 1998 10:50:39 +0000 (10:50 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Thu, 20 Aug 1998 10:50:39 +0000 (06:50 -0400)
From-SVN: r21873

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index 16292f4ea3aa78c6acc35b6b6effbc411bf5c288..a1e5c23104e85142ab0bf2460f9575dcd3d215e9 100644 (file)
@@ -1,3 +1,7 @@
+Thu Aug 20 13:44:20 1998  David Edelsohn  <edelsohn@mhpcc.edu>
+
+       * rs6000.md (movqi, movhi): Add CONSTANT_P_RTX.
+
 Thu Aug 20 13:15:11 1998  Dave Brolley  <brolley@cygnus.com>
 
        * stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for
index eb46a0fe16924a984d846857f534d2f3b4f5281e..22b587c6bbf5ee37c0ee47d22856755008ed8a63 100644 (file)
   if (GET_CODE (operands[0]) != REG)
     operands[1] = force_reg (HImode, operands[1]);
 
-  if (CONSTANT_P (operands[1]) && GET_CODE (operands[1]) != CONST_INT)
+  if (CONSTANT_P (operands[1])
+      && GET_CODE (operands[1]) != CONST_INT
+      && GET_CODE (operands[1]) != CONSTANT_P_RTX)
     {
       operands[1] = force_const_mem (HImode, operands[1]);
       if (! memory_address_p (HImode, XEXP (operands[1], 0))
   if (GET_CODE (operands[0]) != REG)
     operands[1] = force_reg (QImode, operands[1]);
 
-  if (CONSTANT_P (operands[1]) && GET_CODE (operands[1]) != CONST_INT)
+  if (CONSTANT_P (operands[1])
+      && GET_CODE (operands[1]) != CONST_INT
+      && GET_CODE (operands[1]) != CONSTANT_P_RTX)
     {
       operands[1] = force_const_mem (QImode, operands[1]);
       if (! memory_address_p (QImode, XEXP (operands[1], 0))