use (RA|0) instead of zero-test of RA
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 22 Aug 2020 18:14:00 +0000 (19:14 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 22 Aug 2020 18:14:00 +0000 (19:14 +0100)
openpower/isa/fixedtrap.mdwn

index 7bb664933824518eb9dcae56334561ba3c08f06d..fe1e97a83681904c86aa052d4b868dcfd7274378 100644 (file)
@@ -85,10 +85,8 @@ A-Form
 
 Pseudo-code:
 
-    if RA=0 then a <-0
-    else a <-  (RA)
-    if CR[BC+32]=1 then RT <- a
-    else           RT <- (RB)
+    if CR[BC+32]=1 then RT <- (RA|0)
+    else                RT <- (RB)
 
 Special Registers Altered: