Explorar o código

* fixed size of temporary register used to evaluate smallset<=/>=smallset

git-svn-id: trunk@25869 -
Jonas Maebe %!s(int64=11) %!d(string=hai) anos
pai
achega
353c15fb34
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/sparc/ncpuadd.pas

+ 1 - 1
compiler/sparc/ncpuadd.pas

@@ -280,7 +280,7 @@ interface
                  ((nf_swapped in flags) and
                  ((nf_swapped in flags) and
                   (nodetype = gten)) then
                   (nodetype = gten)) then
                 swapleftright;
                 swapleftright;
-              tmpreg:=cg.getintregister(current_asmdata.CurrAsmList,location.size);
+              tmpreg:=cg.getintregister(current_asmdata.CurrAsmList,left.location.size);
               current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_AND,left.location.register,right.location.register,tmpreg));
               current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_AND,left.location.register,right.location.register,tmpreg));
               current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SUBcc,tmpreg,right.location.register,NR_G0));
               current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SUBcc,tmpreg,right.location.register,NR_G0));
               location.resflags:=F_E;
               location.resflags:=F_E;