<div dir="ltr">I'm working on writing a backend for a processor that only has one Branch instruction, a BRnzp, where it branches on a status register (NZP: Negative, Zero, Positive) based on what the result of the last arithmetic operation was. It's implicitly set, nowhere in userspace.<div><br></div><div>Basically, it follows the format of:</div><div>ADD ....</div><div>BR 010 ... (Branches if the result of the ADD was zero).</div><div><br></div><div>Unconditional branches are given as a 111 argument.</div><div><br></div><div>How can I use tablegen to describe this in a way that the scheduler also understands that it's 'attached' to the last instruction?<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Ahmed Samara</div><div dir="ltr"><div><div>M.S. Computer Engineering</div></div></div></div></div></div></div></div>
</div></div>