From 66840b98e41b034c8ce867cfbd58c242bae08f9f Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 12 Oct 2022 14:51:22 -0700 Subject: [PATCH] nir: ifind_msb_rev can only have int32 sources Just like ifind_msb. Reviewed-by: Kenneth Graunke Part-of: --- src/compiler/nir/nir_opcodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 06d6a2da25e..0b2c8c40210 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -498,7 +498,7 @@ for (int bit = bit_size - 1; bit >= 0; bit--) { } """) -unop_convert("ifind_msb_rev", tint32, tint, """ +unop("ifind_msb_rev", tint32, """ dst = -1; /* We are looking for the highest bit that's not the same as the sign bit. */ uint32_t sign = src0 & 0x80000000u;