Browse Source

* thumb2 opcode fixes by Jeppe Johansen, resolves #16306

git-svn-id: trunk@15154 -
florian 15 years ago
parent
commit
3aa1315c06
1 changed files with 4 additions and 2 deletions
  1. 4 2
      rtl/arm/thumb2.inc

+ 4 - 2
rtl/arm/thumb2.inc

@@ -147,7 +147,8 @@ asm
         it eq
         moveq pc,lr
         rsb     r1,r1,#7
-        add     pc,pc,r1,lsl #2
+        mov     r1,r1,lsl #2
+        add     pc,pc,r1
         mov     r0,r0
         strb r2,[r3],#1
         strb r2,[r3],#1
@@ -643,7 +644,8 @@ begin
   cpu_has_edsp:=true;
   in_edsp_test:=true;
   asm
-    bic r0,sp,#7
+    mov r1,sp
+    bic r0,r1,#7
     ldrd r0,[r0]
   end;
   in_edsp_test:=false;