diff --git a/.pick_status.json b/.pick_status.json index f2da3fbeb39..1fac486f0de 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2182,7 +2182,7 @@ "description": "nir: fix documentation for uadd_carry and usub_borry opcodes", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "b0d4ee520e20444172d088d11260e656fc1cf12d" }, diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index bb0c8dc7be6..adc0317e6c7 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -762,13 +762,13 @@ binop("fdiv", tfloat, "", "src0 / src1") binop("idiv", tint, "", "src1 == 0 ? 0 : (src0 / src1)") binop("udiv", tuint, "", "src1 == 0 ? 0 : (src0 / src1)") -# returns a boolean representing the carry resulting from the addition of -# the two unsigned arguments. +# returns an integer (1 or 0) representing the carry resulting from the +# addition of the two unsigned arguments. binop_convert("uadd_carry", tuint, tuint, _2src_commutative, "src0 + src1 < src0") -# returns a boolean representing the borrow resulting from the subtraction -# of the two unsigned arguments. +# returns an integer (1 or 0) representing the borrow resulting from the +# subtraction of the two unsigned arguments. binop_convert("usub_borrow", tuint, tuint, "", "src0 < src1")