diff --git a/.pick_status.json b/.pick_status.json index aa65ffb077d..94f67c1f659 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -4036,7 +4036,7 @@ "description": "nir/ifind_msb_rev: fix input check", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "a5747f8ab357ff00c630b937b221e5fb59d90289" }, diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 88194f762f0..b977e17a8e8 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -489,7 +489,7 @@ for (int bit = 31; bit >= 0; bit--) { unop_convert("ifind_msb_rev", tint32, tuint, """ dst = -1; -if (src0 != 0 || src0 != -1) { +if (src0 != 0 && src0 != -1) { for (int bit = 0; bit < 31; bit++) { /* If src0 < 0, we're looking for the first 0 bit. * if src0 >= 0, we're looking for the first 1 bit.