|
@@ -2058,17 +2058,17 @@ unit cgcpu;
|
|
hreg:=cg.getintregister(list,OS_INT);
|
|
hreg:=cg.getintregister(list,OS_INT);
|
|
list.concat(taicpu.op_const_reg(A_MOVE,S_L,highvalue,hreg));
|
|
list.concat(taicpu.op_const_reg(A_MOVE,S_L,highvalue,hreg));
|
|
list.concat(taicpu.op_const_reg(A_ADD,S_L,lowvalue,regdst.reglo));
|
|
list.concat(taicpu.op_const_reg(A_ADD,S_L,lowvalue,regdst.reglo));
|
|
- list.concat(taicpu.op_reg_reg(A_ADDX,S_L,hreg,regdst.reglo));
|
|
|
|
|
|
+ list.concat(taicpu.op_reg_reg(A_ADDX,S_L,hreg,regdst.reghi));
|
|
end;
|
|
end;
|
|
OP_AND :
|
|
OP_AND :
|
|
begin
|
|
begin
|
|
list.concat(taicpu.op_const_reg(A_AND,S_L,lowvalue,regdst.reglo));
|
|
list.concat(taicpu.op_const_reg(A_AND,S_L,lowvalue,regdst.reglo));
|
|
- list.concat(taicpu.op_const_reg(A_AND,S_L,highvalue,regdst.reglo));
|
|
|
|
|
|
+ list.concat(taicpu.op_const_reg(A_AND,S_L,highvalue,regdst.reghi));
|
|
end;
|
|
end;
|
|
OP_OR :
|
|
OP_OR :
|
|
begin
|
|
begin
|
|
list.concat(taicpu.op_const_reg(A_OR,S_L,lowvalue,regdst.reglo));
|
|
list.concat(taicpu.op_const_reg(A_OR,S_L,lowvalue,regdst.reglo));
|
|
- list.concat(taicpu.op_const_reg(A_OR,S_L,highvalue,regdst.reglo));
|
|
|
|
|
|
+ list.concat(taicpu.op_const_reg(A_OR,S_L,highvalue,regdst.reghi));
|
|
end;
|
|
end;
|
|
{ this is handled in 1st pass for 32-bit cpus (helper call) }
|
|
{ this is handled in 1st pass for 32-bit cpus (helper call) }
|
|
OP_IDIV,OP_DIV,
|
|
OP_IDIV,OP_DIV,
|
|
@@ -2080,12 +2080,12 @@ unit cgcpu;
|
|
hreg:=cg.getintregister(list,OS_INT);
|
|
hreg:=cg.getintregister(list,OS_INT);
|
|
list.concat(taicpu.op_const_reg(A_MOVE,S_L,highvalue,hreg));
|
|
list.concat(taicpu.op_const_reg(A_MOVE,S_L,highvalue,hreg));
|
|
list.concat(taicpu.op_const_reg(A_SUB,S_L,lowvalue,regdst.reglo));
|
|
list.concat(taicpu.op_const_reg(A_SUB,S_L,lowvalue,regdst.reglo));
|
|
- list.concat(taicpu.op_reg_reg(A_SUBX,S_L,hreg,regdst.reglo));
|
|
|
|
|
|
+ list.concat(taicpu.op_reg_reg(A_SUBX,S_L,hreg,regdst.reghi));
|
|
end;
|
|
end;
|
|
OP_XOR:
|
|
OP_XOR:
|
|
begin
|
|
begin
|
|
list.concat(taicpu.op_const_reg(A_EOR,S_L,lowvalue,regdst.reglo));
|
|
list.concat(taicpu.op_const_reg(A_EOR,S_L,lowvalue,regdst.reglo));
|
|
- list.concat(taicpu.op_const_reg(A_EOR,S_L,highvalue,regdst.reglo));
|
|
|
|
|
|
+ list.concat(taicpu.op_const_reg(A_EOR,S_L,highvalue,regdst.reghi));
|
|
end;
|
|
end;
|
|
end; { end case }
|
|
end; { end case }
|
|
end;
|
|
end;
|