From bd2929980140087668167abe252b5f5c0d8f706b Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Sat, 3 Apr 2021 15:48:50 -0300 Subject: [PATCH] Disallow unknown encmodes in SVP64 Assembly --- src/soc/sv/trans/svp64.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/sv/trans/svp64.py b/src/soc/sv/trans/svp64.py index 6bdfb98a..5df66ce1 100644 --- a/src/soc/sv/trans/svp64.py +++ b/src/soc/sv/trans/svp64.py @@ -482,6 +482,8 @@ class SVP64Asm: mapreduce_crm = True elif encmode == 'svm': # sub-vector mode mapreduce_svm = True + else: + raise AssertionError("unknown encmode %s" % encmode) if ptype == '2P': # since m=xx takes precedence (overrides) sm=xx and dm=xx, -- 2.30.2