freedreno/ir3: add imul24 opcode
authorRob Clark <robdclark@chromium.org>
Tue, 8 Oct 2019 20:36:14 +0000 (13:36 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 18 Oct 2019 22:08:54 +0000 (15:08 -0700)
This maps to mul.s24

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/freedreno/ir3/ir3_compiler_nir.c

index 5396cd219a72adf89d71d153a8e291db58b5f0a0..1228fea5534122ec909bdbaf46ffe02ee9baa452 100644 (file)
@@ -558,6 +558,9 @@ emit_alu(struct ir3_context *ctx, nir_alu_instr *alu)
        case nir_op_imad24_ir3:
                dst[0] = ir3_MAD_S24(b, src[0], 0, src[1], 0, src[2], 0);
                break;
+       case nir_op_imul24:
+               dst[0] = ir3_MUL_S24(b, src[0], 0, src[1], 0);
+               break;
        case nir_op_ineg:
                dst[0] = ir3_ABSNEG_S(b, src[0], IR3_REG_SNEG);
                break;