summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-08 15:01:48 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-08 15:01:48 +0000
commit50008a8e9674b7915c11213da46925bd00773b1a (patch)
tree35d7e9387caddf05acc369a23784442a671d6414 /gcc
parent8d5f09ff9fd600f7abf500a2c0a537fb845141df (diff)
downloadgcc-50008a8e9674b7915c11213da46925bd00773b1a.tar.gz
* config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
MDBH registers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195020 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/config/rl78/rl78.md8
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2e662e840ae..78eb7c07b20 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -2,6 +2,8 @@
* config/rl78/rl78.c (rl78_expand_prologue): Always select
register bank 0 at the start of an interrupt handler.
+ * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
+ MDBH registers.
2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
diff --git a/gcc/config/rl78/rl78.md b/gcc/config/rl78/rl78.md
index 0910a009a24..6448b9046ec 100644
--- a/gcc/config/rl78/rl78.md
+++ b/gcc/config/rl78/rl78.md
@@ -273,10 +273,10 @@
)
;; 0xFFFF0 is MDAL. 0xFFFF2 is MDAH.
-;; 0xFFFF4 is MDBL. 0xFFFF6 is MDBH.
+;; 0xFFFF6 is MDBL. 0xFFFF4 is MDBH.
;; 0xF00E0 is MDCL. 0xF00E2 is MDCH.
;; 0xF00E8 is MDUC.
-;; Warning: this matches the documentation, not the silicon.
+;; Warning: this matches the silicon not the documentation.
(define_insn "mulsi3_g13"
[(set (match_operand:SI 0 "register_operand" "=&v")
(mult:SI (match_operand:SI 1 "nonmemory_operand" "vi")
@@ -291,12 +291,12 @@
movw ax, %h2
movw 0xffff2, ax ; MDAH
nop ; mdb = mdal * mdah
- movw ax, 0xffff4 ; MDBL
+ movw ax, 0xffff6 ; MDBL
movw %h0, ax
mov a, #0x40
mov !0xf00e8, a ; MDUC
- movw ax, 0xffff6 ; MDBH
+ movw ax, 0xffff4 ; MDBH
movw !0xf00e0, ax ; MDCL
movw ax, #0
movw !0xf00e2, ax ; MDCL