OSDN Git Service

* xstormy16.cpu (sdiv, divlh, sdivlh): Fix sdivlh/divlh encodings.
authordj <dj>
Mon, 25 Nov 2002 21:14:15 +0000 (21:14 +0000)
committerdj <dj>
Mon, 25 Nov 2002 21:14:15 +0000 (21:14 +0000)
cgen/ChangeLog
cgen/cpu/xstormy16.cpu

index e4ad8a4..aaf7d51 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-25  DJ Delorie  <dj@redhat.com>
+
+       * xstormy16.cpu (sdiv, divlh, sdivlh): Fix sdivlh/divlh encodings.
+
 2002-11-21  Jeff Johnston  <jjohnstn@redhat.com>
 
        * cpu/iq10.cpu: New file.
index abc0097..14cbc1b 100644 (file)
      "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))))
      "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))