소스 검색

* fixed names, returned by std_regname for ymm registers

git-svn-id: trunk@35997 -
nickysn 8 년 전
부모
커밋
8926adbab5
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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