From: Luke Kenneth Casson Leighton Date: Wed, 22 Jun 2022 14:58:26 +0000 (+0100) Subject: undefined X-Git-Tag: opf_rfc_ls005_v1~1595 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30469cc3cf7b7eb790e7d99fbef69e970992d7b9;p=libreriscv.git undefined --- diff --git a/openpower/sv/bmask.py b/openpower/sv/bmask.py index 9930d0a37..c59fc5efa 100644 --- a/openpower/sv/bmask.py +++ b/openpower/sv/bmask.py @@ -20,6 +20,8 @@ def bmask(mode, RA, RB=None, zero=False): RT = a1 & a2 if mode3 == 2: RT = a1 ^ a2 + if mode3 == 3: + RT = 0 # UNDEFINED RT &= mask if not zero: RT |= RA & ~mask