From aba079b3afa0bf28e611772420db053bdff3a6a3 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") Reviewed-by: Alyssa Rosenzweig Part-of: --- 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 9c6baae35c9..fb6513aa76a 100644 --- a/src/compiler/nir/nir_algebraic.py +++ b/src/compiler/nir/nir_algebraic.py @@ -114,6 +114,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):