소스 검색

* Don't optimize (eliminate) arm fpu move instruction if it performs float type conversion. It fixes tb0519.pp on arm-linux.

git-svn-id: trunk@8059 -
yury 18 년 전
부모
커밋
3e60b4a8dd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/arm/aasmcpu.pas

+ 1 - 1
compiler/arm/aasmcpu.pas

@@ -489,7 +489,7 @@ implementation
       begin
         { allow the register allocator to remove unnecessary moves }
         result:=(((opcode=A_MOV) and (regtype = R_INTREGISTER)) or
-                 ((opcode=A_MVF) and (regtype = R_FPUREGISTER))
+                 ((opcode=A_MVF) and (regtype = R_FPUREGISTER) and (oppostfix in [PF_None,PF_D]))
                 ) and
                 (condition=C_None) and
                 (ops=2) and