Skip to contentSkip to conversation

ppc64.risu: Fix pattern for darn

PATCH New Sandipan Das 1 participant 1 message Sep 6, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc64.risu: Fix pattern for darn

This fixes the pattern for the Deliver A Random Number (darn) instruction to ensure that the value of the L field, which is used to determine the type and length of the generated random number, is never 3 which is currently reserved for future use.

---
 ppc64.risu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ppc64.risu +1 -1
index 2018103..a27e4fd 100644
@@ -277,7 +277,7 @@ DADDQd PPC64LE 111111 frtp:5 frap:5 frbp:5 00000000101
 
 # format:X book:I page:79 v3.0 darn Deliver A Random Number
 DARN PPC64LE 011111 rt:5 000 l:2 0000010111100110 \
-!constraints { $rt != 1 && $rt != 13; }
+!constraints { $rt != 1 && $rt != 13 && $l != 3; }
 
 # format:X book:I page:217 v2.06 dcffix DFP Convert From Fixed
 DCFFIX PPC64LE 111011 frt:5 00000 frb:5 11001000100
Signature · 1 line
2.14.4