Explorar o código

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

git-svn-id: trunk@36122 -

nickysn %!s(int64=8) %!d(string=hai) anos
pai
achega
98d2684368
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      compiler/x86/agx86att.pas

+ 3 - 0
compiler/x86/agx86att.pas

@@ -322,6 +322,9 @@ interface
           are (xmm) arguments }
         if (op=A_MOVSD) and (taicpu(hp).ops>0) then
           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
           owner.writer.AsmWrite(gas_op2str[op]);
         owner.writer.AsmWrite(cond2str[taicpu(hp).condition]);