From cd95e45837c78dd63a3cea1b936016845faf63a7 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Fri, 2 Apr 2021 16:58:48 -0300 Subject: [PATCH] Put sanity check inside the existing '2Pred' case, and simplify --- src/soc/sv/trans/svp64.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/soc/sv/trans/svp64.py b/src/soc/sv/trans/svp64.py index a28f94cd..6bdfb98a 100644 --- a/src/soc/sv/trans/svp64.py +++ b/src/soc/sv/trans/svp64.py @@ -500,12 +500,11 @@ class SVP64Asm: if has_smask and smmode == 1: assert has_pmask, \ "need explicit dest-mask in CR twin predication" - - # sanity-check that 2Pred mask is same mode - if (has_pmask and has_smask) or mask_m_specified: - assert smmode == pmmode, \ - "predicate masks %s and %s must be same reg type" % \ - (pme, sme) + # sanity-check that 2Pred mask is same mode + if has_pmask and has_smask: + assert smmode == pmmode, \ + "predicate masks %s and %s must be same reg type" % \ + (pme, sme) # sanity-check that twin-predication mask only specified in 2P mode if ptype == '1P': -- 2.30.2