From d9353501bf5d0354fa16fc8561ff6ee3f6e6c0e8 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Fri, 2 Apr 2021 12:06:00 -0300 Subject: [PATCH] Really enforce sm=xx not being allowed on single-pred Before, using m=xx together with sm=xx would defeat the assertion. --- src/soc/sv/trans/svp64.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/sv/trans/svp64.py b/src/soc/sv/trans/svp64.py index 93529a4d..24c5fff8 100644 --- a/src/soc/sv/trans/svp64.py +++ b/src/soc/sv/trans/svp64.py @@ -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 -- 2.30.2