pan/bi: Model [IF]CMP_{OR,AND,MULTI} ops
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 22 Jul 2022 18:22:16 +0000 (14:22 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 16:03:23 +0000 (16:03 +0000)
commit40bf6da4a420adaee2aa67e8d6df9fbfa2ecd9a5
tree67af98f27e94d03b976cd18e48fb076d9bdbf627
parentd0aaf52602341705a915d85fe295341de0744bd2
pan/bi: Model [IF]CMP_{OR,AND,MULTI} ops

Valhall-style comparisons are 3-source, allowing multiple comparisons to be
combined without bitwise arithmetic. For example, the sequence

   FCMP.f32.eq t, z, w
   FCMP_AND.f32.eq dest, x, y, t

calculates (z == w) && (y == t) in 2 instructions (would be 3 on Bifrost).

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>
src/panfrost/bifrost/ISA.xml