Explorar o código

* fixed spilling of mmx registers

git-svn-id: trunk@4604 -
Jonas Maebe %!s(int64=19) %!d(string=hai) anos
pai
achega
cd0c38b9d9
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      compiler/x86/rgx86.pas

+ 5 - 0
compiler/x86/rgx86.pas

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