|
@@ -1171,10 +1171,10 @@ Begin
|
|
firstRemovedWasAlloc := false;
|
|
firstRemovedWasAlloc := false;
|
|
first := true;
|
|
first := true;
|
|
{$ifdef allocregdebug}
|
|
{$ifdef allocregdebug}
|
|
- hp := Tai_asm_comment.Create(strpnew('allocating '+att_reg2str[reg]+
|
|
|
|
|
|
+ hp := Tai_asm_comment.Create(strpnew('allocating '+gas_reg2str[reg]+
|
|
' from here...')));
|
|
' from here...')));
|
|
insertllitem(asml,p1.previous,p1,hp);
|
|
insertllitem(asml,p1.previous,p1,hp);
|
|
- hp := Tai_asm_comment.Create(strpnew('allocated '+att_reg2str[reg]+
|
|
|
|
|
|
+ hp := Tai_asm_comment.Create(strpnew('allocated '+gas_reg2str[reg]+
|
|
' till here...')));
|
|
' till here...')));
|
|
insertllitem(asml,p2,p1.next,hp);
|
|
insertllitem(asml,p2,p1.next,hp);
|
|
{$endif allocregdebug}
|
|
{$endif allocregdebug}
|
|
@@ -1525,7 +1525,7 @@ Begin {checks whether two Taicpu instructions are equal}
|
|
Begin
|
|
Begin
|
|
RegInfo.RegsLoadedForRef := RegInfo.RegsLoadedForRef + [Base];
|
|
RegInfo.RegsLoadedForRef := RegInfo.RegsLoadedForRef + [Base];
|
|
{$ifdef csdebug}
|
|
{$ifdef csdebug}
|
|
- Writeln(att_reg2str[base], ' added');
|
|
|
|
|
|
+ Writeln(gas_reg2str[base], ' added');
|
|
{$endif csdebug}
|
|
{$endif csdebug}
|
|
end;
|
|
end;
|
|
If Not(Index in [procinfo^.FramePointer,
|
|
If Not(Index in [procinfo^.FramePointer,
|
|
@@ -1533,7 +1533,7 @@ Begin {checks whether two Taicpu instructions are equal}
|
|
Begin
|
|
Begin
|
|
RegInfo.RegsLoadedForRef := RegInfo.RegsLoadedForRef + [Index];
|
|
RegInfo.RegsLoadedForRef := RegInfo.RegsLoadedForRef + [Index];
|
|
{$ifdef csdebug}
|
|
{$ifdef csdebug}
|
|
- Writeln(att_reg2str[index], ' added');
|
|
|
|
|
|
+ Writeln(gas_reg2str[index], ' added');
|
|
{$endif csdebug}
|
|
{$endif csdebug}
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1544,7 +1544,7 @@ Begin {checks whether two Taicpu instructions are equal}
|
|
RegInfo.RegsLoadedForRef := RegInfo.RegsLoadedForRef -
|
|
RegInfo.RegsLoadedForRef := RegInfo.RegsLoadedForRef -
|
|
[Reg32(Taicpu(p2).oper[1].reg)];
|
|
[Reg32(Taicpu(p2).oper[1].reg)];
|
|
{$ifdef csdebug}
|
|
{$ifdef csdebug}
|
|
- Writeln(att_reg2str[Reg32(Taicpu(p2).oper[1].reg)], ' removed');
|
|
|
|
|
|
+ Writeln(gas_reg2str[Reg32(Taicpu(p2).oper[1].reg)], ' removed');
|
|
{$endif csdebug}
|
|
{$endif csdebug}
|
|
end;
|
|
end;
|
|
InstructionsEquivalent :=
|
|
InstructionsEquivalent :=
|
|
@@ -1891,7 +1891,7 @@ Begin
|
|
top_reg:
|
|
top_reg:
|
|
begin
|
|
begin
|
|
{$ifdef statedebug}
|
|
{$ifdef statedebug}
|
|
- hp := Tai_asm_comment.Create(strpnew('destroying '+att_reg2str[o.reg]));
|
|
|
|
|
|
+ hp := Tai_asm_comment.Create(strpnew('destroying '+gas_reg2str[o.reg]));
|
|
hp.next := Taiobj^.next;
|
|
hp.next := Taiobj^.next;
|
|
hp.previous := Taiobj;
|
|
hp.previous := Taiobj;
|
|
Taiobj^.next := hp;
|
|
Taiobj^.next := hp;
|
|
@@ -1940,7 +1940,7 @@ Begin
|
|
invalidateDependingRegs(p.optinfo,reg);
|
|
invalidateDependingRegs(p.optinfo,reg);
|
|
pTaiprop(p.optinfo)^.regs[reg].memwrite := nil;
|
|
pTaiprop(p.optinfo)^.regs[reg].memwrite := nil;
|
|
{$ifdef StateDebug}
|
|
{$ifdef StateDebug}
|
|
- hp := Tai_asm_comment.Create(strpnew(att_reg2str[reg]+': '+tostr(PTaiProp(p.optinfo)^.Regs[reg].WState)
|
|
|
|
|
|
+ hp := Tai_asm_comment.Create(strpnew(gas_reg2str[reg]+': '+tostr(PTaiProp(p.optinfo)^.Regs[reg].WState)
|
|
+ ' -- ' + tostr(PTaiProp(p.optinfo)^.Regs[reg].nrofmods))));
|
|
+ ' -- ' + tostr(PTaiProp(p.optinfo)^.Regs[reg].nrofmods))));
|
|
InsertLLItem(AsmL, p, p.next, hp);
|
|
InsertLLItem(AsmL, p, p.next, hp);
|
|
{$endif StateDebug}
|
|
{$endif StateDebug}
|
|
@@ -1948,12 +1948,12 @@ Begin
|
|
Else
|
|
Else
|
|
Begin
|
|
Begin
|
|
{$ifdef statedebug}
|
|
{$ifdef statedebug}
|
|
- hp := Tai_asm_comment.Create(strpnew('destroying '+att_reg2str[reg]));
|
|
|
|
|
|
+ hp := Tai_asm_comment.Create(strpnew('destroying '+gas_reg2str[reg]));
|
|
insertllitem(asml,p,p.next,hp);
|
|
insertllitem(asml,p,p.next,hp);
|
|
{$endif statedebug}
|
|
{$endif statedebug}
|
|
DestroyReg(PTaiProp(p.optinfo), Reg, true);
|
|
DestroyReg(PTaiProp(p.optinfo), Reg, true);
|
|
{$ifdef StateDebug}
|
|
{$ifdef StateDebug}
|
|
- hp := Tai_asm_comment.Create(strpnew(att_reg2str[reg]+': '+tostr(PTaiProp(p.optinfo)^.Regs[reg].WState)));
|
|
|
|
|
|
+ hp := Tai_asm_comment.Create(strpnew(gas_reg2str[reg]+': '+tostr(PTaiProp(p.optinfo)^.Regs[reg].WState)));
|
|
InsertLLItem(AsmL, p, p.next, hp);
|
|
InsertLLItem(AsmL, p, p.next, hp);
|
|
{$endif StateDebug}
|
|
{$endif StateDebug}
|
|
End
|
|
End
|
|
@@ -2242,7 +2242,7 @@ Begin
|
|
Begin
|
|
Begin
|
|
{$ifdef statedebug}
|
|
{$ifdef statedebug}
|
|
hp := Tai_asm_comment.Create(strpnew('destroying '+
|
|
hp := Tai_asm_comment.Create(strpnew('destroying '+
|
|
- att_reg2str[Taicpu(p).oper[1].reg])));
|
|
|
|
|
|
+ gas_reg2str[Taicpu(p).oper[1].reg])));
|
|
insertllitem(asml,p,p.next,hp);
|
|
insertllitem(asml,p,p.next,hp);
|
|
{$endif statedebug}
|
|
{$endif statedebug}
|
|
|
|
|
|
@@ -2270,7 +2270,7 @@ Begin
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
{$ifdef statedebug}
|
|
{$ifdef statedebug}
|
|
- hp := Tai_asm_comment.Create(strpnew('destroying & initing '+att_reg2str[tmpreg]));
|
|
|
|
|
|
+ hp := Tai_asm_comment.Create(strpnew('destroying & initing '+gas_reg2str[tmpreg]));
|
|
insertllitem(asml,p,p.next,hp);
|
|
insertllitem(asml,p,p.next,hp);
|
|
{$endif statedebug}
|
|
{$endif statedebug}
|
|
destroyReg(curprop, tmpreg, true);
|
|
destroyReg(curprop, tmpreg, true);
|
|
@@ -2283,7 +2283,7 @@ Begin
|
|
end
|
|
end
|
|
end;
|
|
end;
|
|
{$ifdef StateDebug}
|
|
{$ifdef StateDebug}
|
|
- hp := Tai_asm_comment.Create(strpnew(att_reg2str[TmpReg]+': '+tostr(CurProp^.regs[TmpReg].WState)));
|
|
|
|
|
|
+ hp := Tai_asm_comment.Create(strpnew(gas_reg2str[TmpReg]+': '+tostr(CurProp^.regs[TmpReg].WState)));
|
|
InsertLLItem(AsmL, p, p.next, hp);
|
|
InsertLLItem(AsmL, p, p.next, hp);
|
|
{$endif StateDebug}
|
|
{$endif StateDebug}
|
|
End;
|
|
End;
|
|
@@ -2308,7 +2308,7 @@ Begin
|
|
Begin
|
|
Begin
|
|
TmpReg := Reg32(Taicpu(p).oper[1].reg);
|
|
TmpReg := Reg32(Taicpu(p).oper[1].reg);
|
|
{$ifdef statedebug}
|
|
{$ifdef statedebug}
|
|
- hp := Tai_asm_comment.Create(strpnew('destroying '+att_reg2str[tmpreg]));
|
|
|
|
|
|
+ hp := Tai_asm_comment.Create(strpnew('destroying '+gas_reg2str[tmpreg]));
|
|
insertllitem(asml,p,p.next,hp);
|
|
insertllitem(asml,p,p.next,hp);
|
|
{$endif statedebug}
|
|
{$endif statedebug}
|
|
With CurProp^.regs[TmpReg] Do
|
|
With CurProp^.regs[TmpReg] Do
|
|
@@ -2378,7 +2378,7 @@ Begin
|
|
begin
|
|
begin
|
|
{$ifdef statedebug}
|
|
{$ifdef statedebug}
|
|
hp := Tai_asm_comment.Create(strpnew('destroying & initing'+
|
|
hp := Tai_asm_comment.Create(strpnew('destroying & initing'+
|
|
- att_reg2str[Taicpu(p).oper[1].reg])));
|
|
|
|
|
|
+ gas_reg2str[Taicpu(p).oper[1].reg])));
|
|
insertllitem(asml,p,p.next,hp);
|
|
insertllitem(asml,p,p.next,hp);
|
|
{$endif statedebug}
|
|
{$endif statedebug}
|
|
destroyreg(curprop,Taicpu(p).oper[1].reg,true);
|
|
destroyreg(curprop,Taicpu(p).oper[1].reg,true);
|
|
@@ -2404,7 +2404,7 @@ Begin
|
|
ReadReg(CurProp, TCh2Reg(InstrProp.Ch[Cnt]));
|
|
ReadReg(CurProp, TCh2Reg(InstrProp.Ch[Cnt]));
|
|
{$ifdef statedebug}
|
|
{$ifdef statedebug}
|
|
hp := Tai_asm_comment.Create(strpnew('destroying '+
|
|
hp := Tai_asm_comment.Create(strpnew('destroying '+
|
|
- att_reg2str[TCh2Reg(InstrProp.Ch[Cnt])])));
|
|
|
|
|
|
+ gas_reg2str[TCh2Reg(InstrProp.Ch[Cnt])])));
|
|
insertllitem(asml,p,p.next,hp);
|
|
insertllitem(asml,p,p.next,hp);
|
|
{$endif statedebug}
|
|
{$endif statedebug}
|
|
DestroyReg(CurProp, TCh2Reg(InstrProp.Ch[Cnt]), true);
|
|
DestroyReg(CurProp, TCh2Reg(InstrProp.Ch[Cnt]), true);
|
|
@@ -2586,7 +2586,10 @@ End.
|
|
|
|
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.28 2002-04-02 17:11:34 peter
|
|
|
|
|
|
+ Revision 1.29 2002-04-14 17:00:49 carl
|
|
|
|
+ + att_reg2str -> gas_reg2str
|
|
|
|
+
|
|
|
|
+ Revision 1.28 2002/04/02 17:11:34 peter
|
|
* tlocation,treference update
|
|
* tlocation,treference update
|
|
* LOC_CONSTANT added for better constant handling
|
|
* LOC_CONSTANT added for better constant handling
|
|
* secondadd splitted in multiple routines
|
|
* secondadd splitted in multiple routines
|