mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:39:31 +02:00
Add missing size postfix to VNEG VFP instruction.
git-svn-id: branches/laksen/armiw@29436 -
This commit is contained in:
parent
2ac11e4b82
commit
db401f0371
@ -411,6 +411,7 @@ implementation
|
||||
procedure tarmunaryminusnode.second_float;
|
||||
var
|
||||
op: tasmop;
|
||||
pf: TOpPostfix;
|
||||
begin
|
||||
secondpass(left);
|
||||
case current_settings.fputype of
|
||||
@ -432,8 +433,14 @@ implementation
|
||||
location:=left.location;
|
||||
if (left.location.loc=LOC_CMMREGISTER) then
|
||||
location.register:=cg.getmmregister(current_asmdata.CurrAsmList,location.size);
|
||||
current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_VNEG,
|
||||
location.register,left.location.register));
|
||||
|
||||
if (tfloatdef(left.resultdef).floattype=s32real) then
|
||||
pf:=PF_F32
|
||||
else
|
||||
pf:=PF_F64;
|
||||
|
||||
current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_VNEG,
|
||||
location.register,left.location.register), pf));
|
||||
end;
|
||||
fpu_fpv4_s16:
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user