diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 832b6215222..b114e51584d 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -957,6 +957,9 @@ if (nir_is_rounding_mode_rtz(execution_mode, bit_size)) { triop("flrp", tfloat, "", "src0 * (1 - src2) + src1 * src2") +# Ternary addition +triop("iadd3", tint, _2src_commutative + associative, "src0 + src1 + src2") + # Conditional Select # # A vector conditional select instruction (like ?:, but operating per-