瀏覽代碼

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

git-svn-id: trunk@36122 -

nickysn 8 年之前
父節點
當前提交
98d2684368
共有 1 個文件被更改,包括 3 次插入0 次删除
  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]);