aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-12-26 16:15:24 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-12-26 16:15:24 +0000
commit8825ae504599c177b77436626ea66a16e4a96204 (patch)
treea6e0a8fd7d907f4506acfb1f61ad9251fdcadb73 /gcc
parent38910ebb1b81498c7dfbd7904acf01a31052d17b (diff)
downloadgcc-8825ae504599c177b77436626ea66a16e4a96204.zip
gcc-8825ae504599c177b77436626ea66a16e4a96204.tar.gz
gcc-8825ae504599c177b77436626ea66a16e4a96204.tar.bz2
h8300.md (ldm_h8300s_2_normal): Use HImode for addresses.
* config/h8300/h8300.md (ldm_h8300s_2_normal): Use HImode for addresses. From-SVN: r75036
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/h8300/h8300.md8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1f908aa..838a16e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-26 Kazu Hirata <kazu@cs.umass.edu>
+
+ * config/h8300/h8300.md (ldm_h8300s_2_normal): Use HImode for
+ addresses.
+
2003-12-25 Kazu Hirata <kazu@cs.umass.edu>
* config/m32r/m32r.md: Remove a constraint from a splitter.
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index 9743308..80683d5 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -2090,11 +2090,11 @@
(define_insn "ldm_h8300s_2_normal"
[(parallel
- [(set (reg:SI SP_REG)
- (plus:SI (reg:SI SP_REG) (const_int 8)))
- (set (mem:SI (plus:SI (reg:SI SP_REG) (const_int 4)))
+ [(set (reg:HI SP_REG)
+ (plus:HI (reg:HI SP_REG) (const_int 8)))
+ (set (mem:SI (plus:HI (reg:HI SP_REG) (const_int 4)))
(match_operand:SI 0 "register_operand" ""))
- (set (mem:SI (reg:SI SP_REG))
+ (set (mem:SI (reg:HI SP_REG))
(match_operand:SI 1 "register_operand" ""))])]
"TARGET_H8300S && TARGET_NORMAL_MODE
&& ((REGNO (operands[0]) == 0 && REGNO (operands[1]) == 1)