From 2ef97a079aa705c609a1a3fb9d8640b8d8675d9a Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 27 Jan 2021 12:17:26 -0500 Subject: [PATCH] pan/bi: Implement bitfield_reverse Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 03a336b0703..ac99a7c9a5f 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -1521,6 +1521,10 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr) bi_popcount_i32_to(b, dst, s0); break; + case nir_op_bitfield_reverse: + bi_bitrev_i32_to(b, dst, s0); + break; + default: fprintf(stderr, "Unhandled ALU op %s\n", nir_op_infos[instr->op].name); unreachable("Unknown ALU op");