浏览代码

* fixed spilling of mmx registers

git-svn-id: trunk@4604 -
Jonas Maebe 19 年之前
父节点
当前提交
cd0c38b9d9
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      compiler/x86/rgx86.pas

+ 5 - 0
compiler/x86/rgx86.pas

@@ -220,6 +220,11 @@ implementation
                 oper[replaceoper]^.typ:=top_ref;
                 new(oper[replaceoper]^.ref);
                 oper[replaceoper]^.ref^:=spilltemp;
+                { memory locations aren't guaranteed to be aligned }
+                case opcode of
+                  A_MOVAPS:
+                    opcode:=A_MOVQ;
+                end;
                 result:=true;
               end;
           end;