From: Luke Kenneth Casson Leighton Date: Fri, 3 Apr 2020 15:22:37 +0000 (+0100) Subject: include brackets to make syntax work X-Git-Tag: convert-csv-opcode-to-binary~2968 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=344292b90954e8f9c78b8f11a7f0ac84070a3dc7;p=libreriscv.git include brackets to make syntax work --- diff --git a/openpower/isa/comparefixed.mdwn b/openpower/isa/comparefixed.mdwn index 9563cde12..304729e49 100644 --- a/openpower/isa/comparefixed.mdwn +++ b/openpower/isa/comparefixed.mdwn @@ -88,8 +88,8 @@ X-Form if L=0 then in_range <- (src22lo <= src1) & (src1 <= src22hi) else - in_range <- ((src21lo <= src1) & (src1 <= src21hi)) | - ((src22lo <= src1) & (src1 <= src22hi)) + in_range <- (((src21lo <= src1) & (src1 <= src21hi)) | + ((src22lo <= src1) & (src1 <= src22hi))) CR[4×BF+32] <- 0b0 CR[4×BF+33] <- in_range CR[4×BF+34] <- 0b0 @@ -106,14 +106,14 @@ X-Form * cmpeqb BF,RA,RB src1 <- GPR[RA].bit[56:63] - match <- (src1 = (RB)[00:07]) | - (src1 = (RB)[08:15]) | - (src1 = (RB)[16:23]) | - (src1 = (RB)[24:31]) | - (src1 = (RB)[32:39]) | - (src1 = (RB)[40:47]) | - (src1 = (RB)[48:55]) | - (src1 = (RB)[56:63]) + match <- ((src1 = (RB)[00:07]) | + (src1 = (RB)[08:15]) | + (src1 = (RB)[16:23]) | + (src1 = (RB)[24:31]) | + (src1 = (RB)[32:39]) | + (src1 = (RB)[40:47]) | + (src1 = (RB)[48:55]) | + (src1 = (RB)[56:63])) CR[4×BF+32] <- 0b0 CR[4×BF+33] <- match CR[4×BF+34] <- 0b0