summaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorclm <clm@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-20 16:42:31 +0000
committerclm <clm@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-20 16:42:31 +0000
commita6371e9a06a153264a0a61a58c851974bcb82377 (patch)
treef59673008b570f512eadcb31c01109d6ef5a8c9b /gcc/config
parent3460a017a06f802cff7bf6e16a8a6a928d459e37 (diff)
downloadgcc-a6371e9a06a153264a0a61a58c851974bcb82377.tar.gz
Tue Apr 20 17:57:14 1999 Catherine Moore <clm@cygnus.com>
* config/arm/arm.md (movhi): Add check for odd offset. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26564 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/arm/arm.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md
index 2c2d48b7e7f..174b00b72a9 100644
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
@@ -2913,10 +2913,11 @@
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,