diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-11-04 22:21:20 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-11-15 20:08:46 +0000 |
commit | 2655a300a369fbc69df5fd53e2adbd45496bf69d (patch) | |
tree | de92063c7eeb1c1b13757f118da419ce3052b759 /src/panfrost/midgard/midgard_compile.c | |
parent | 855eec93b10579ffdffada8dc39b87314db4e646 (diff) |
pan/midgard: Implement i2i64 and u2u64
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_compile.c')
-rw-r--r-- | src/panfrost/midgard/midgard_compile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index c71afba9427..bf794997796 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -826,6 +826,7 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr) case nir_op_i2i8: case nir_op_i2i16: case nir_op_i2i32: + case nir_op_i2i64: /* If we end up upscale, we'll need a sign-extend on the * operand (the second argument) */ @@ -833,7 +834,8 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr) /* fallthrough */ case nir_op_u2u8: case nir_op_u2u16: - case nir_op_u2u32: { + case nir_op_u2u32: + case nir_op_u2u64: { op = midgard_alu_op_imov; if (dst_bitsize == (src_bitsize * 2)) { |