Browse Source

* fixed spilling of mmx registers

git-svn-id: trunk@4604 -
Jonas Maebe 19 years ago
parent
commit
cd0c38b9d9
1 changed files with 5 additions and 0 deletions
  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;