pan/bi: Add BRANCHZI instruction
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 1 Mar 2022 20:14:13 +0000 (15:14 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 3 Mar 2022 00:41:44 +0000 (00:41 +0000)
Technically this is just JUMP on Valhall, but the semantic is an indirect branch
based on comparing with zero. It can also be used as a conservative branch (like
BRANCHC), but this isn't modeled.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15216>

src/panfrost/bifrost/ISA.xml

index c61b4ac..08471a8 100644 (file)
     <src start="3"/>
   </ins>
 
+  <ins name="+BRANCHZI" pseudo="true" last="true" dests="0">
+    <src start="0"/>
+    <src start="6" mask="0xf7"/>
+    <mod name="cmpf" size="1">
+      <opt>eq</opt>
+      <opt>ne</opt>
+    </mod>
+  </ins>
+
 </bifrost>