use proper cast function
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 20 Apr 2023 03:36:09 +0000 (20:36 -0700)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:17 +0000 (19:51 +0100)
openpower/isa/fixedlogical.mdwn

index d3b54bc9ac350d7a4f437451198082be37846891..bc5e3ceeb8f14ee5ed801c0563d52df12da17fe5 100644 (file)
@@ -278,7 +278,7 @@ Pseudo-code:
        if (RS)[XLEN-1-n] = 0b1 then
             leave
        n  <- n + 1
-    RA <- EXTZXL(n)
+    RA <- XLCASTU(n)
 
 Special Registers Altered:
 
@@ -447,7 +447,7 @@ Pseudo-code:
        if (RS)[XLEN-1-n] = 0b1 then
             leave
        n  <- n + 1
-    RA <- EXTZXL(n)
+    RA <- XLCASTU(n)
 
 Special Registers Altered: