ソースを参照

* don't convert movs into (the non-existing) ldrs in do_spill_replace()

git-svn-id: trunk@28390 -
Jonas Maebe 11 年 前
コミット
5e280b3131
1 ファイル変更4 行追加0 行削除
  1. 4 0
      compiler/arm/rgcpu.pas

+ 4 - 0
compiler/arm/rgcpu.pas

@@ -290,6 +290,10 @@ unit rgcpu;
         if abs(spilltemp.offset)>4095 then
           exit;
 
+        { ldr can't set the flags }
+        if instr.oppostfix=PF_S then
+          exit;
+
         if GenerateThumbCode and
           (abs(spilltemp.offset)>1020) then
           exit;