arm.md (movhi): Add check for odd offset.
authorCatherine Moore <clm@cygnus.com>
Tue, 20 Apr 1999 16:42:31 +0000 (16:42 +0000)
committerCatherine Moore <clm@gcc.gnu.org>
Tue, 20 Apr 1999 16:42:31 +0000 (12:42 -0400)
Tue Apr 20 17:57:14 1999  Catherine Moore  <clm@cygnus.com>
        * config/arm/arm.md (movhi):  Add check for odd offset.

From-SVN: r26564

gcc/ChangeLog
gcc/config/arm/arm.md

index c31352a2b49a94ff667968d77a1b09b0e724d855..fd67f315e4545b40595a105c5e17216d3c09923f 100644 (file)
@@ -1,3 +1,7 @@
+Tue Apr 20 17:57:14 1999  Catherine Moore  <clm@cygnus.com>
+
+        * config/arm/arm.md (movhi):  Add check for odd offset.
+
 Tue Apr 20 13:14:58 EDT 1999  John Wehle  (john@feith.com)
 
        * i386.c (output_move_double): Abort if a non-offsettable
index 2c2d48b7e7ff9accc6a6bdab38c492f4ede2f746..174b00b72a9180d298636d2ea77d655906d34260 100644 (file)
                  if ((GET_CODE (base = XEXP (operands[1], 0)) == REG
                       || (GET_CODE (base) == PLUS
                           && GET_CODE (offset = XEXP (base, 1)) == CONST_INT
+                           && ((INTVAL(offset) & 1) != 1)
                           && GET_CODE (base = XEXP (base, 0)) == REG))
                      && REGNO_POINTER_ALIGN (REGNO (base)) >= 4)
                    {
-                     HOST_WIDE_INT new_offset = INTVAL (offset) & ~2;
+                     HOST_WIDE_INT new_offset = INTVAL (offset) & ~3;
                      rtx new;
 
                      new = gen_rtx_MEM (SImode,