Browse Source

* generate VMOVAPS for (V)Cvtss2CvtSd(V)Cvtsd2ss optimization, resolves #39360

florian 3 years ago
parent
commit
b4bf371b34
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/x86/aoptx86.pas

+ 2 - 2
compiler/x86/aoptx86.pas

@@ -5886,10 +5886,10 @@ unit aoptx86;
              end
              end
            else
            else
              begin
              begin
-               DebugMsg(SPeepholeOptimization + '(V)Cvtss2CvtSd(V)Cvtsd2ss2Vmovss done',p);
+               DebugMsg(SPeepholeOptimization + '(V)Cvtss2CvtSd(V)Cvtsd2ss2Vmovaps done',p);
                taicpu(p).loadreg(1,taicpu(hp1).oper[2]^.reg);
                taicpu(p).loadreg(1,taicpu(hp1).oper[2]^.reg);
                taicpu(p).ops:=2;
                taicpu(p).ops:=2;
-               taicpu(p).opcode:=A_VMOVSS;
+               taicpu(p).opcode:=A_VMOVAPS;
                RemoveInstruction(hp1);
                RemoveInstruction(hp1);
              end;
              end;
            Result:=true;
            Result:=true;