undefined
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Jun 2022 14:58:26 +0000 (15:58 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Jun 2022 14:58:34 +0000 (15:58 +0100)
openpower/sv/bmask.py

index 9930d0a3735f22a10ee6ad2c8686301d3bb04fa9..c59fc5efaee93b24749d37e1d667f99c1fd12506 100644 (file)
@@ -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