From 5ca1740bee6531e923db63764f72b4ec30c7162a Mon Sep 17 00:00:00 2001 From: Jeppe Johansen Date: Sat, 21 Mar 2015 12:46:45 +0000 Subject: [PATCH] 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 - --- compiler/arm/cpubase.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/arm/cpubase.pas b/compiler/arm/cpubase.pas index 66fd7f1a09..101401384a 100644 --- a/compiler/arm/cpubase.pas +++ b/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