From 30469cc3cf7b7eb790e7d99fbef69e970992d7b9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 22 Jun 2022 15:58:26 +0100 Subject: [PATCH] undefined --- openpower/sv/bmask.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2