Fix encoding of ROR and EXTR instructions.
authorTaylor R Campbell <campbell@mumble.net>
Sat, 19 Jan 2019 21:20:47 +0000 (21:20 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Wed, 21 Aug 2019 21:34:03 +0000 (21:34 +0000)
src/compiler/machines/aarch64/instr2.scm

index f86ba37968e2ca90f53db67e1bac6e6c689ea599..e0b9b29cda78872cd00af774f18e044faea03c1c 100644 (file)
@@ -293,7 +293,7 @@ USA.
                   (? Rn)
                   ,@(if m=n? '() '((? Rm)))
                   (&U (? s unsigned-5)))
-               (BITS (1 0)              ;sf=0
+               (BITS (1 0)              ;sf=0, 32-bit operand size
                      (2 ,op21)
                      (1 1)
                      (4 #b0011)
@@ -309,12 +309,12 @@ USA.
                   (? Rn)
                   ,@(if m=n? '() '((? Rm)))
                   (&U (? s unsigned-6)))
-               (BITS (1 0)              ;sf=0
+               (BITS (1 1)              ;sf=1, 64-bit operand size
                      (2 ,op21)
                      (1 1)
                      (4 #b0011)
                      (1 1)
-                     (1 0)              ;N, must match sf
+                     (1 1)              ;N, must match sf
                      (1 ,o0)
                      (5 ,(if m=n? 'Rn 'Rm))
                      (6 s)