From: DJ Delorie Date: Mon, 25 Nov 2002 21:14:16 +0000 (+0000) Subject: * xstormy16.cpu (sdiv, divlh, sdivlh): Fix sdivlh/divlh encodings. X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=a9df2e3604357bbbba1fae8a041b33f6cebf25d3;p=cgen.git * xstormy16.cpu (sdiv, divlh, sdivlh): Fix sdivlh/divlh encodings. --- diff --git a/ChangeLog b/ChangeLog index e4ad8a4..aaf7d51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-11-25 DJ Delorie + + * xstormy16.cpu (sdiv, divlh, sdivlh): Fix sdivlh/divlh encodings. + 2002-11-21 Jeff Johnston * cpu/iq10.cpu: New file. diff --git a/cpu/xstormy16.cpu b/cpu/xstormy16.cpu index abc0097..14cbc1b 100644 --- a/cpu/xstormy16.cpu +++ b/cpu/xstormy16.cpu @@ -1852,7 +1852,7 @@ "Divide 32/16" () ("sdivlh") - (+ (f-op #x00E0)) + (+ (f-op #x00E8)) (sequence ((SI value)) (set value (add SI (sll SI (and SI R1 #xffff) #x10) (and SI R0 #xffff))) (set R1 (mod SI value (ext SI (trunc HI R2)))) @@ -1863,7 +1863,7 @@ "Divide 32/16" () ("divlh") - (+ (f-op #x00E8)) + (+ (f-op #x00E0)) (sequence ((SI value)) (set value (add SI (sll SI (and SI R1 #xffff) #x10) (and SI R0 #xffff))) (set R1 (umod SI value R2))