pan/bi: Add ATOM_RETURN pseudo-instruction

Allows modeling Valhall's atomics better.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15223>
This commit is contained in:
Alyssa Rosenzweig 2022-03-22 21:53:04 -04:00 committed by Marge Bot
parent 7983a0d0dc
commit 90867e8204

View file

@ -8272,6 +8272,30 @@
<immediate name="sr_count" size="4" pseudo="true"/>
</ins>
<ins name="+ATOM.i32" pseudo="true" staging="r=sr_count" message="atomic">
<src start="0"/>
<src start="3"/>
<mod name="atom_opc" start="9" size="4">
<reserved/>
<reserved/>
<opt>aadd</opt>
<reserved/>
<reserved/>
<reserved/>
<reserved/>
<reserved/>
<opt>asmin</opt>
<opt>asmax</opt>
<opt>aumin</opt>
<opt>aumax</opt>
<opt>aand</opt>
<opt>aor</opt>
<opt>axor</opt>
</mod>
<!-- not actually encoded, but used for IR -->
<immediate name="sr_count" size="4" pseudo="true"/>
</ins>
<!-- *CUBEFACE1/+CUBEFACE2 pair, two destinations, scheduler lowered -->
<ins name="+CUBEFACE" pseudo="true" dests="2">
<src start="0"/>