Pārlūkot izejas kodu

+ correctly support the sse2 version of the cmpsd x86 instruction, when writing
at&t style asm output

git-svn-id: trunk@36122 -

nickysn 8 gadi atpakaļ
vecāks
revīzija
98d2684368
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      compiler/x86/agx86att.pas

+ 3 - 0
compiler/x86/agx86att.pas

@@ -322,6 +322,9 @@ interface
           are (xmm) arguments }
           are (xmm) arguments }
         if (op=A_MOVSD) and (taicpu(hp).ops>0) then
         if (op=A_MOVSD) and (taicpu(hp).ops>0) then
           owner.writer.AsmWrite('movsd')
           owner.writer.AsmWrite('movsd')
+        { the same applies to cmpsd as well }
+        else if (op=A_CMPSD) and (taicpu(hp).ops>0) then
+          owner.writer.AsmWrite('cmpsd')
         else
         else
           owner.writer.AsmWrite(gas_op2str[op]);
           owner.writer.AsmWrite(gas_op2str[op]);
         owner.writer.AsmWrite(cond2str[taicpu(hp).condition]);
         owner.writer.AsmWrite(cond2str[taicpu(hp).condition]);