(no commit message)
authorlkcl <lkcl@web>
Sun, 3 Oct 2021 23:29:57 +0000 (00:29 +0100)
committerIkiWiki <ikiwiki.info>
Sun, 3 Oct 2021 23:29:57 +0000 (00:29 +0100)
openpower/sv/svp64/extsxl.mdwn

index 6a8a95e7ee5fcd72a4d9e2909cfd775c3a53da80..4fd8df56d0d94577c5a73459208b561302f10119 100644 (file)
@@ -6,7 +6,7 @@
 
         def EXTSXL(self, value, bits):
             bits = min(bits, self.XLEN)
-            return SelectableInt(exts(value.value, bits) & ((1 << self.XLEN)-1), self.XLEN)
+            return SelectableInt(exts(value.value, bits), self.XLEN)
 
 # Table