Browse Source

* fixed names, returned by std_regname for ymm registers

git-svn-id: trunk@35997 -
nickysn 8 years ago
parent
commit
8926adbab5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/x86/cpubase.pas

+ 2 - 1
compiler/x86/cpubase.pas

@@ -561,7 +561,8 @@ implementation
       var
         p : tregisterindex;
       begin
-        if getregtype(r) in [R_MMREGISTER,R_MMXREGISTER] then
+        if (getregtype(r)=R_MMXREGISTER) or
+          ((getregtype(r)=R_MMREGISTER) and not(getsubreg(r) in [R_SUBMMX,R_SUBMMY])) then
           r:=newreg(getregtype(r),getsupreg(r),R_SUBNONE);
         p:=findreg_by_number(r);
         if p<>0 then