diff --git a/bitmanip/insns/add_uw.adoc b/bitmanip/insns/add_uw.adoc index a8ebd72..32b9540 100644 --- a/bitmanip/insns/add_uw.adoc +++ b/bitmanip/insns/add_uw.adoc @@ -25,7 +25,7 @@ Encoding:: .... Description:: -This instruction performs an XLEN-wide addition between _rs2_ and the Zero-extended least significant word of _rs1_. +This instruction performs an XLEN-wide addition between _rs2_ and the zero-extended least-significant word of _rs1_. Operation:: [source,sail] diff --git a/bitmanip/insns/andn.adoc b/bitmanip/insns/andn.adoc index 3850745..078b4d0 100644 --- a/bitmanip/insns/andn.adoc +++ b/bitmanip/insns/andn.adoc @@ -21,7 +21,7 @@ Encoding:: .... Description:: -This instruction performs the bitwise logical AND operation between _rs1_ and the bitwise-inversion of _rs2_. +This instruction performs the bitwise logical AND operation between _rs1_ and the bitwise inversion of _rs2_. Operation:: [source,sail] diff --git a/bitmanip/insns/bclr.adoc b/bitmanip/insns/bclr.adoc index efb7c75..2a90168 100644 --- a/bitmanip/insns/bclr.adoc +++ b/bitmanip/insns/bclr.adoc @@ -1,4 +1,4 @@ -#insns-bclr,reftext="Single-Bit Clear (Register)"] +[#insns-bclr,reftext="Single-Bit Clear (Register)"] === bclr Synopsis:: diff --git a/bitmanip/insns/bclri.adoc b/bitmanip/insns/bclri.adoc index 4bbdd2b..a95edda 100644 --- a/bitmanip/insns/bclri.adoc +++ b/bitmanip/insns/bclri.adoc @@ -35,7 +35,7 @@ Encoding (RV64):: Description:: This instruction returns _rs1_ with a single bit cleared at the index specified in _shamt_. -The index is read from the lower log2[XLEN] bits of _shamt_. +The index is read from the lower log2(XLEN) bits of _shamt_. Operation:: [source,sail] diff --git a/bitmanip/insns/binvi.adoc b/bitmanip/insns/binvi.adoc index 37424b0..c73a1cb 100644 --- a/bitmanip/insns/binvi.adoc +++ b/bitmanip/insns/binvi.adoc @@ -35,7 +35,7 @@ Encoding (RV64):: Description:: This instruction returns _rs1_ with a single bit inverted at the index specified in _shamt_. -The index is read from the lower log2[XLEN] bits of _shamt_. +The index is read from the lower log2(XLEN) bits of _shamt_. Operation:: [source,sail] diff --git a/bitmanip/insns/clz.adoc b/bitmanip/insns/clz.adoc index 21ccb1e..7f06017 100644 --- a/bitmanip/insns/clz.adoc +++ b/bitmanip/insns/clz.adoc @@ -21,7 +21,7 @@ Encoding:: .... Description:: -This instruction counts the number of 0's before the first 1, starting at the most signifcant bit (i.e., XLEN-1 ) and progressing to bit 0. Accordingly, if the input is 0, the output is XLEN, and if the most signifcant bit of the input is a 1, the output is 0. +This instruction counts the number of 0's before the first 1, starting at the most-significant bit (i.e., XLEN-1) and progressing to bit 0. Accordingly, if the input is 0, the output is XLEN, and if the most-significant bit of the input is a 1, the output is 0. Operation:: [source,sail] diff --git a/bitmanip/insns/clzw.adoc b/bitmanip/insns/clzw.adoc index b7cbe9a..496d5e0 100644 --- a/bitmanip/insns/clzw.adoc +++ b/bitmanip/insns/clzw.adoc @@ -22,7 +22,7 @@ Encoding:: Description:: This instruction counts the number of 0's before the first 1 starting at bit 31 and progressing to bit 0. -Accordingly, if the least significant word is 0, the output is 32, and if the most significant bit of the word (i.e., bit 31) is a 1, the output is 0. +Accordingly, if the least-significant word is 0, the output is 32, and if the most-significant bit of the word (i.e., bit 31) is a 1, the output is 0. Operation:: [source,sail] diff --git a/bitmanip/insns/ctz.adoc b/bitmanip/insns/ctz.adoc index 935c666..4f4943d 100644 --- a/bitmanip/insns/ctz.adoc +++ b/bitmanip/insns/ctz.adoc @@ -21,7 +21,7 @@ Encoding:: .... Description:: -This instruction counts the number of 0's before the first 1, starting at the least signifcant bit (i.e., 0 ) and progressing to the most significant bit (i.e., XLEN-1. Accordingly, if the input is 0, the output is XLEN, and if the least signifcant bit of the input is a 1, the output is 0. +This instruction counts the number of 0's before the first 1, starting at the least-significant bit (i.e., 0) and progressing to the most-significant bit (i.e., XLEN-1. Accordingly, if the input is 0, the output is XLEN, and if the least-significant bit of the input is a 1, the output is 0. Operation:: [source,sail] diff --git a/bitmanip/insns/ctzw.adoc b/bitmanip/insns/ctzw.adoc index 16b0c3e..6e3cdda 100644 --- a/bitmanip/insns/ctzw.adoc +++ b/bitmanip/insns/ctzw.adoc @@ -21,7 +21,7 @@ Encoding:: .... Description:: -This instruction counts the number of 0's before the first 1, starting at the least signifcant bit (i.e., 0 ) and progressing to the most significant bit of the least significant word (i.e., 31). Accordingly, if the least significant word is 0, the output is 32, and if the least signifcant bit of the input is a 1, the output is 0. +This instruction counts the number of 0's before the first 1, starting at the least-significant bit (i.e., 0) and progressing to the most-significant bit of the least-significant word (i.e., 31). Accordingly, if the least-significant word is 0, the output is 32, and if the least-significant bit of the input is a 1, the output is 0. Operation:: [source,sail] diff --git a/bitmanip/insns/max.adoc b/bitmanip/insns/max.adoc index 6205ed5..0b855f6 100644 --- a/bitmanip/insns/max.adoc +++ b/bitmanip/insns/max.adoc @@ -1,5 +1,5 @@ [#insns-max,reftext="Maximum"] -=== +=== max Synopsis:: Maximum @@ -42,7 +42,7 @@ X(rd) = result; Calculating the absolute value of a signed integer can be performed using the following sequence: *neg rD,rS* followed by *max rD,rS,rD*. When using this common sequence, it is suggested that they -are schededuled with no intervening instructions so that +are scheduled with no intervening instructions so that implementations that are so optimized can fuse them together. =============================================================== diff --git a/bitmanip/insns/min.adoc b/bitmanip/insns/min.adoc index 78405c4..b69abdd 100644 --- a/bitmanip/insns/min.adoc +++ b/bitmanip/insns/min.adoc @@ -1,5 +1,5 @@ [#insns-min,reftext="Minimum"] -=== +=== min Synopsis:: Minimum diff --git a/bitmanip/insns/orc_b.adoc b/bitmanip/insns/orc_b.adoc index ff99231..d2325bf 100644 --- a/bitmanip/insns/orc_b.adoc +++ b/bitmanip/insns/orc_b.adoc @@ -21,7 +21,7 @@ Encoding:: Description:: Combines the bits within every byte through a reciprocal bitwise logical OR. -This sets the bits of each byte in the result _rd_ to all-zeros, if no bit within the respective byte of _rs_ is set, or to all-ones, if any bit within the respective byte of _rs_ is set. +This sets the bits of each byte in the result _rd_ to all zeros if no bit within the respective byte of _rs_ is set, or to all ones if any bit within the respective byte of _rs_ is set. Operation:: [source,sail] diff --git a/bitmanip/insns/orn.adoc b/bitmanip/insns/orn.adoc index 28e593c..390d74a 100644 --- a/bitmanip/insns/orn.adoc +++ b/bitmanip/insns/orn.adoc @@ -21,7 +21,7 @@ Encoding:: .... Description:: -This instruction performs the bitwise logical AND operation between _rs1_ and the bitwise-inversion of _rs2_. +This instruction performs the bitwise logical AND operation between _rs1_ and the bitwise inversion of _rs2_. Operation:: [source,sail] diff --git a/bitmanip/insns/rol.adoc b/bitmanip/insns/rol.adoc index 27d4f4e..299100d 100644 --- a/bitmanip/insns/rol.adoc +++ b/bitmanip/insns/rol.adoc @@ -21,7 +21,7 @@ Encoding:: .... Description:: -This instruction performs a rotate-left of _rs1_ by the amount in least-significant log2[xlen] bits of _rs2_. +This instruction performs a rotate-left of _rs1_ by the amount in least-significant log2(XLEN) bits of _rs2_. Operation:: [source,sail] diff --git a/bitmanip/insns/rolw.adoc b/bitmanip/insns/rolw.adoc index 87f64d9..1ab04d4 100644 --- a/bitmanip/insns/rolw.adoc +++ b/bitmanip/insns/rolw.adoc @@ -21,8 +21,8 @@ Encoding:: .... Description:: -This instruction performs a rotate-left on the least significant word of _rs1_ by the amount in least-significant 5 bits of _rs2_. -The resulting word value is sign extended by copying bit 31 to all of the more significant bits. +This instruction performs a rotate-left on the least-significant word of _rs1_ by the amount in least-significant 5 bits of _rs2_. +The resulting word value is sign-extended by copying bit 31 to all of the more-significant bits. Operation:: [source,sail] diff --git a/bitmanip/insns/rori.adoc b/bitmanip/insns/rori.adoc index eeb7def..576b90c 100644 --- a/bitmanip/insns/rori.adoc +++ b/bitmanip/insns/rori.adoc @@ -34,7 +34,7 @@ Encoding (RV64):: .... Description:: -This instruction performs a rotate-right of _rs1_ by the amount in the least-significant log2[xlen] bits of _shamt_. +This instruction performs a rotate-right of _rs1_ by the amount in the least-significant log2(XLEN) bits of _shamt_. Operation:: [source,sail] diff --git a/bitmanip/insns/roriw.adoc b/bitmanip/insns/roriw.adoc index 790dcc1..86d1767 100644 --- a/bitmanip/insns/roriw.adoc +++ b/bitmanip/insns/roriw.adoc @@ -1,4 +1,4 @@ -[#insns-roriw,reftext="Rotate-right Wordsized (Immediate)"] +[#insns-roriw,reftext="Rotate-right Word (Immediate)"] === roriw Synopsis:: @@ -21,11 +21,11 @@ Encoding:: .... Description:: -This instruction performs a rotate-right on the least significant word -of _rs1_ by the amount in the least-significant log2(xlen) bits of +This instruction performs a rotate-right on the least-significant word +of _rs1_ by the amount in the least-significant log2(XLEN) bits of _shamt_. -The resulting word value is sign extended by copying bit 31 to all of -the more significant bits. +The resulting word value is sign-extended by copying bit 31 to all of +the more-significant bits. Operation:: diff --git a/bitmanip/insns/rorw.adoc b/bitmanip/insns/rorw.adoc index c2b51c3..6111edf 100644 --- a/bitmanip/insns/rorw.adoc +++ b/bitmanip/insns/rorw.adoc @@ -1,8 +1,8 @@ -[#insns-rorw,reftext="Rotate-right Wordsized (Register)"] +[#insns-rorw,reftext="Rotate-right Word (Register)"] === rorw Synopsis:: -Rotate-Right Wordsized (Register) +Rotate-Right Word (Register) Mnemonic:: rorw _rd_, _rs1_, _rs2_ @@ -21,8 +21,8 @@ Encoding:: .... Description:: -This instruction performs a rotate-right on the least significant word of _rs1_ by the amount in least-significant 5 bits of _rs2_. -The resultant word is sign extended by copying bit 31 to all of the more significant bits. +This instruction performs a rotate-right on the least-significant word of _rs1_ by the amount in least-significant 5 bits of _rs2_. +The resultant word is sign-extended by copying bit 31 to all of the more-significant bits. Operation:: [source,sail] diff --git a/bitmanip/insns/sext_b.adoc b/bitmanip/insns/sext_b.adoc index d7a87b5..48abe08 100644 --- a/bitmanip/insns/sext_b.adoc +++ b/bitmanip/insns/sext_b.adoc @@ -21,7 +21,7 @@ Encoding:: .... Description:: -This instruction sign-extends the least-significant byte in the source to XLEN by copying the most significant bit in the byte (i.e., bit 7) to all of the more significant bits. +This instruction sign-extends the least-significant byte in the source to XLEN by copying the most-significant bit in the byte (i.e., bit 7) to all of the more-significant bits. Operation:: [source,sail] diff --git a/bitmanip/insns/sext_h.adoc b/bitmanip/insns/sext_h.adoc index 91035b3..339b44a 100644 --- a/bitmanip/insns/sext_h.adoc +++ b/bitmanip/insns/sext_h.adoc @@ -21,7 +21,7 @@ Encoding:: .... Description:: -This instruction sign-extends the least-significant halfword in _rs_ to XLEN by copying the most significant bit in the halfword (i.e., bit 15) to all of the more significant bits. +This instruction sign-extends the least-significant halfword in _rs_ to XLEN by copying the most-significant bit in the halfword (i.e., bit 15) to all of the more-significant bits. Operation:: [source,sail] diff --git a/bitmanip/insns/sh1add_uw.adoc b/bitmanip/insns/sh1add_uw.adoc index 9bd7335..37a2c2c 100644 --- a/bitmanip/insns/sh1add_uw.adoc +++ b/bitmanip/insns/sh1add_uw.adoc @@ -22,7 +22,7 @@ Encoding:: Description:: This instruction performs an XLEN-wide addition of two addends. -The first addened is _rs2_. The second addened is the unsigned value formed by extracting the least significant word of _rs1_ and shifting it left by 1 place. +The first addend is _rs2_. The second addend is the unsigned value formed by extracting the least-significant word of _rs1_ and shifting it left by 1 place. Operation:: [source,sail] diff --git a/bitmanip/insns/sh2add_uw.adoc b/bitmanip/insns/sh2add_uw.adoc index 5f4ea8e..a5fd23d 100644 --- a/bitmanip/insns/sh2add_uw.adoc +++ b/bitmanip/insns/sh2add_uw.adoc @@ -22,8 +22,8 @@ Encoding:: Description:: This instruction performs an XLEN-wide addition of two addends. -The first addened is _rs2_. -The second addened is the unsigned value formed by extracting the least significant word of _rs1_ and shifting it left by 2 places. +The first addend is _rs2_. +The second addend is the unsigned value formed by extracting the least-significant word of _rs1_ and shifting it left by 2 places. Operation:: [source,sail] diff --git a/bitmanip/insns/sh3add_uw.adoc b/bitmanip/insns/sh3add_uw.adoc index 2d3227d..340d800 100644 --- a/bitmanip/insns/sh3add_uw.adoc +++ b/bitmanip/insns/sh3add_uw.adoc @@ -21,7 +21,7 @@ Encoding:: .... Description:: -This instruction performs an XLEN-wide addition of two addends. The first addened is _rs2_. The second addened is the unsigned value formed by extracting the least significant word of _rs1_ and shifting it left by 3 places. +This instruction performs an XLEN-wide addition of two addends. The first addend is _rs2_. The second addend is the unsigned value formed by extracting the least-significant word of _rs1_ and shifting it left by 3 places. Operation:: [source,sail] diff --git a/bitmanip/insns/slli_uw.adoc b/bitmanip/insns/slli_uw.adoc index 0a188b6..fc309d4 100644 --- a/bitmanip/insns/slli_uw.adoc +++ b/bitmanip/insns/slli_uw.adoc @@ -21,7 +21,7 @@ Encoding:: .... Description:: -This instruction takes the least significant word of _rs1_, zero extends it, and shifts it left by the immediate. +This instruction takes the least-significant word of _rs1_, zero-extends it, and shifts it left by the immediate. Operation:: [source,sail] diff --git a/bitmanip/insns/xnor.adoc b/bitmanip/insns/xnor.adoc index 79fef9b..23c5b58 100644 --- a/bitmanip/insns/xnor.adoc +++ b/bitmanip/insns/xnor.adoc @@ -21,7 +21,7 @@ Encoding:: .... Description:: -This instruction performs the bit-wise exlusive-NOR operation on _rs1_ and _rs2_. +This instruction performs the bit-wise exclusive-NOR operation on _rs1_ and _rs2_. Operation:: [source,sail]