Really enforce sm=xx not being allowed on single-pred
authorCesar Strauss <cestrauss@gmail.com>
Fri, 2 Apr 2021 15:06:00 +0000 (12:06 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Fri, 2 Apr 2021 15:06:00 +0000 (12:06 -0300)
Before, using m=xx together with sm=xx would defeat the assertion.

src/soc/sv/trans/svp64.py

index 93529a4de462508d9e7cf112b435d2d57ceba419..24c5fff865483f23450e8ce4a9e10cca5e53bb9b 100644 (file)
@@ -490,8 +490,8 @@ class SVP64Asm:
                         (pme, sme)
 
             # sanity-check that twin-predication mask only specified in 2P mode
-            if not mask_m_specified and ptype == '1P':
-                assert has_smask or mask_m_specified == False, \
+            if ptype == '1P':
+                assert not has_smask, \
                     "source-mask can only be specified on Twin-predicate ops"
 
             # construct the mode field, doing sanity-checking along the way