Commit 83ffd964 by Nick Clifton Committed by Nick Clifton

rl78.md (mulsi3_g13): Correct values for MDBL and MDBH registers.

	* config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
	MDBH registers.

From-SVN: r195020
parent f90d87f5
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
* config/rl78/rl78.c (rl78_expand_prologue): Always select * config/rl78/rl78.c (rl78_expand_prologue): Always select
register bank 0 at the start of an interrupt handler. 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> 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
......
...@@ -273,10 +273,10 @@ ...@@ -273,10 +273,10 @@
) )
;; 0xFFFF0 is MDAL. 0xFFFF2 is MDAH. ;; 0xFFFF0 is MDAL. 0xFFFF2 is MDAH.
;; 0xFFFF4 is MDBL. 0xFFFF6 is MDBH. ;; 0xFFFF6 is MDBL. 0xFFFF4 is MDBH.
;; 0xF00E0 is MDCL. 0xF00E2 is MDCH. ;; 0xF00E0 is MDCL. 0xF00E2 is MDCH.
;; 0xF00E8 is MDUC. ;; 0xF00E8 is MDUC.
;; Warning: this matches the documentation, not the silicon. ;; Warning: this matches the silicon not the documentation.
(define_insn "mulsi3_g13" (define_insn "mulsi3_g13"
[(set (match_operand:SI 0 "register_operand" "=&v") [(set (match_operand:SI 0 "register_operand" "=&v")
(mult:SI (match_operand:SI 1 "nonmemory_operand" "vi") (mult:SI (match_operand:SI 1 "nonmemory_operand" "vi")
...@@ -291,12 +291,12 @@ ...@@ -291,12 +291,12 @@
movw ax, %h2 movw ax, %h2
movw 0xffff2, ax ; MDAH movw 0xffff2, ax ; MDAH
nop ; mdb = mdal * mdah nop ; mdb = mdal * mdah
movw ax, 0xffff4 ; MDBL movw ax, 0xffff6 ; MDBL
movw %h0, ax movw %h0, ax
mov a, #0x40 mov a, #0x40
mov !0xf00e8, a ; MDUC mov !0xf00e8, a ; MDUC
movw ax, 0xffff6 ; MDBH movw ax, 0xffff4 ; MDBH
movw !0xf00e0, ax ; MDCL movw !0xf00e0, ax ; MDCL
movw ax, #0 movw ax, #0
movw !0xf00e2, ax ; MDCL movw !0xf00e2, ax ; MDCL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment