From 3e60b4a8dd7000da83d9da1c2e3e79ba34dd90d6 Mon Sep 17 00:00:00 2001 From: yury Date: Sat, 14 Jul 2007 21:52:15 +0000 Subject: [PATCH] * 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 - --- compiler/arm/aasmcpu.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/arm/aasmcpu.pas b/compiler/arm/aasmcpu.pas index 564f2bc640..932707d28d 100644 --- a/compiler/arm/aasmcpu.pas +++ b/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