nir: Fixup algebraic test for variable-sized conversions
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 7 Dec 2018 09:48:22 +0000 (10:48 +0100)
committerConnor Abbott <cwabbott0@gmail.com>
Fri, 7 Dec 2018 15:07:51 +0000 (16:07 +0100)
b2i can now take any size boolean in preparation for 1-bit booleans, so
the error message printed is slightly different.

Fixes: dca6cd9ce65 ("nir: Make boolean conversions sized just like the others")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108961
Cc: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/tests/algebraic_parser_test.py

index 492a09ec7dbcf876d1e65332ccef76bf72a52959..d96da7db5199ba3b2c6ef32ccc391f8da906aa5a 100644 (file)
@@ -67,7 +67,7 @@ class ValidatorTests(unittest.TestCase):
 
     def test_replace_src_bitsize(self):
         self.common((('iadd', a, ('b2i', b)), ('iadd', a, b)),
-            "Sources a (bit size of a) and b (bit size of 32) " \
+            "Sources a (bit size of a) and b (bit size of b) " \
             "of ('iadd', 'a', 'b') may not have the same bit size " \
             "when building the replacement expression.")