add all missing undefined cases for mul and div instructions
authorJacob Lifshay <programmerjake@gmail.com>
Fri, 9 Oct 2020 23:12:32 +0000 (16:12 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Fri, 9 Oct 2020 23:12:32 +0000 (16:12 -0700)
openpower/isa/fixedarith.mdwn

index 49513ed9d2f013f3ae7494f84ab689107ccca4d7..47eccaeadc19175768ce546ceaa5b2b8834442ff 100644 (file)
@@ -329,7 +329,7 @@ Pseudo-code:
 
     prod[0:63] <- MULS((RA)[32:63], (RB)[32:63])
     RT[32:63] <- prod[0:31]
-    RT[0:31] <- prod[0:31]
+    RT[0:31] <- undefined(prod[0:31])
 
 Special Registers Altered:
 
@@ -367,7 +367,7 @@ Pseudo-code:
 
     prod[0:63] <- (RA)[32:63] *  (RB)[32:63]
     RT[32:63] <- prod[0:31]
-    RT[0:31] <- prod[0:31]
+    RT[0:31] <- unsigned(prod[0:31])
 
 Special Registers Altered: