mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-03 09:57:31 +01:00
+ taicpu.op_reg_sym for sparc
git-svn-id: trunk@36635 -
This commit is contained in:
parent
26b43e65c9
commit
5b91fd7065
@ -60,6 +60,7 @@ uses
|
||||
constructor op_cond_sym(op : tasmop;cond:TAsmCond;_op1 : tasmsymbol);
|
||||
constructor op_sym(op : tasmop;_op1 : tasmsymbol);
|
||||
constructor op_sym_ofs(op : tasmop;_op1 : tasmsymbol;_op1ofs:aint);
|
||||
constructor op_reg_sym(op : tasmop;_op1 : Tregister;_op2 : tasmsymbol);
|
||||
procedure loadbool(opidx:longint;_b:boolean);
|
||||
{ register allocation }
|
||||
function is_same_reg_move(regtype: Tregistertype):boolean; override;
|
||||
@ -223,6 +224,16 @@ implementation
|
||||
end;
|
||||
|
||||
|
||||
constructor taicpu.op_reg_sym(op : tasmop;_op1:Tregister;_op2 : tasmsymbol);
|
||||
begin
|
||||
inherited create(op);
|
||||
is_jmp:=op in [A_BA,A_Bxx];
|
||||
ops:=2;
|
||||
loadreg(0,_op1);
|
||||
loadsymbol(1,_op2,0);
|
||||
end;
|
||||
|
||||
|
||||
constructor taicpu.op_sym_ofs(op : tasmop;_op1 : tasmsymbol;_op1ofs:aint);
|
||||
begin
|
||||
inherited create(op);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user