Browse Source

Fix issue in is_thumb32_imm. imm<11:10> have to be non-zero meaning the rotate only works from 8 to 31. Caused 0x8000001F to be mistaken for a valid immediate.

git-svn-id: trunk@30266 -
Jeppe Johansen 10 years ago
parent
commit
5ca1740bee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/arm/cpubase.pas

+ 1 - 1
compiler/arm/cpubase.pas

@@ -608,7 +608,7 @@ unit cpubase;
         else
           begin
             result:=false;
-            for i:=1 to 31 do
+            for i:=8 to 31 do
               begin
                 t:=RolDWord(d,i);
                 if ((t and $FF)=t) and