Browse Source

+ subsetreg support

git-svn-id: trunk@4059 -
Jonas Maebe 19 years ago
parent
commit
502556bd46
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/x86/nx86add.pas

+ 2 - 0
compiler/x86/nx86add.pas

@@ -239,6 +239,8 @@ unit nx86add;
         tmpreg : tregister;
 {$endif x86_64}
       begin
+        if (right.location.loc in [LOC_CSUBSETREG,LOC_SUBSETREG]) then
+          location_force_reg(current_asmdata.CurrAsmList,right.location,def_cgsize(right.resulttype.def),true);
         { left must be a register }
         case right.location.loc of
           LOC_REGISTER,