fpc/tests/webtbs/tw37099.pp
florian a7c0fa0def o patch for Xtensa by Christo Crause, resolves #37099
+ Added postfix parsing in tattreader.GetToken
    - Removed all postfixed versions of OpCodes from the instruction list
    + Added all missing OpCodes from Xtensa ISA
    * Changed branch OpCode to A_B, similar to ARM
    + Added missing branch condition flags BCI and BSI
    * Updated existing compiler code that referred to the old postfixed instructions
    + Added prefix and postfix handling in TxtensaInstrWriter.WriteInstruction
    * Updated TCPUAddNode.second_addfloat to specify .S postfix
    * Updated tcpuunaryminusnode.second_float to specify .S postfix
    + Implemented prefix and postfix identification in txtensaattreader.is_asmopcode
    * Adapted branch condition extraction to respect postfixes
    * Changed itcpugas to call findreg_by_name_table from raatt.pas (same as issue #0037121, difficult to test these changes without including a fix for the register name search problem)

git-svn-id: trunk@45672 -
2020-06-21 14:51:40 +00:00

32 lines
359 B
ObjectPascal

{ %cpu=xtensa }
{ %norun }
unit asmtest;
interface
procedure test;
implementation
procedure test; assembler;
label
lbl, lbl2;
asm
bbci.l a4, 7, lbl2
_bnez.n a4, lbl2
loopnez a5, lbl
beqz.n a2, lbl
add a4, a5, a6
lbl:
bt b9, lbl
sub.s f1, f9, f13
_loopgtz a3, lbl2
rsr.prid a2
extui a4, a3, 2, 1
lbl2:
mula.aa.ll a3, a4
end;
end.