From: Alyssa Rosenzweig Date: Fri, 24 Jun 2022 13:09:06 +0000 (-0400) Subject: pan/bi: Handle uhadd, urhadd opcodes X-Git-Tag: upstream/22.3.5~2853 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42a474daac9053aa9ea7b356e3b09c5797e69519;p=platform%2Fupstream%2Fmesa.git pan/bi: Handle uhadd, urhadd opcodes Fixes integer_ops.integer_hadd. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index f96ae46..b83cc41 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -2991,6 +2991,14 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr) bi_hadd_to(b, nir_type_int, sz, dst, s0, s1, BI_ROUND_RTP); break; + case nir_op_uhadd: + bi_hadd_to(b, nir_type_uint, sz, dst, s0, s1, BI_ROUND_RTN); + break; + + case nir_op_urhadd: + bi_hadd_to(b, nir_type_uint, sz, dst, s0, s1, BI_ROUND_RTP); + break; + case nir_op_ineg: bi_isub_to(b, nir_type_int, sz, dst, bi_zero(), s0, false); break;