Explorar o código

Fix encoding of shifterops for ARM dataprocessing instructions.

git-svn-id: branches/laksen/armiw@29348 -
Jeppe Johansen %!s(int64=11) %!d(string=hai) anos
pai
achega
97fdfc942b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/arm/aasmcpu.pas

+ 1 - 1
compiler/arm/aasmcpu.pas

@@ -2558,7 +2558,7 @@ implementation
                 if (op+1<opercnt) and (oper[op+1]^.typ=top_shifterop) then
                   with oper[op+1]^.shifterop^ do
                     begin
-                      bytes:=bytes or (shiftimm shl 7);
+                      bytes:=bytes or ((shiftimm and $1F) shl 7);
                       if shiftmode<>SM_RRX then
                         bytes:=bytes or (ord(shiftmode) - ord(SM_LSL)) shl 5
                       else