From dbdcdb2e38072839d428fe5067282bb0b540f978 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 17 Dec 2025 12:37:36 -0800 Subject: [PATCH] nir/algebraic: Detect missing f on F-strings Missing f in other cases seems to be caught either elsewhere in the script or by the C compiler. Fixes: c49d6e04808 ("nir/algebraic: Elide range clamping of f2u sources") --- src/compiler/nir/nir_algebraic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/nir/nir_algebraic.py b/src/compiler/nir/nir_algebraic.py index 5ead743c8c3..1f8e643cfb6 100644 --- a/src/compiler/nir/nir_algebraic.py +++ b/src/compiler/nir/nir_algebraic.py @@ -107,6 +107,9 @@ class SearchExpression(object): self.sources = expr[1:] self.ignore_exact = False + assert '{' not in self.opcode, \ + 'Malformed opcode name \"{}\".'.format(self.opcode) + @staticmethod def create(val): if isinstance(val, tuple):