Browse Source

ncgmat: fix location for constant divisions-by-power-of-two after a291347d

Karoly Balogh 22 hours ago
parent
commit
ed65f26e98
1 changed files with 3 additions and 0 deletions
  1. 3 0
      compiler/ncgmat.pas

+ 3 - 0
compiler/ncgmat.pas

@@ -431,6 +431,9 @@ implementation
                     End
                   Else { not signed }
                     cg.a_op_const_reg(current_asmdata.CurrAsmList,OP_SHR,OS_INT,power,hreg1);
+
+                  location_reset(location,LOC_REGISTER,opsize);
+                  location.register:=hreg1;
                 End
               else
                 begin