Clarify instructions.rs documentation for ushr/ashr (narrow values) (#6186)

This commit is contained in:
Alexa VanHattum
2023-04-09 16:01:49 -04:00
committed by GitHub
parent e3dbad9cc2
commit 71d3b638f3

View File

@@ -2415,7 +2415,7 @@ pub(crate) fn define(
places, shifting in zero bits to the MSB. Also called a *logical places, shifting in zero bits to the MSB. Also called a *logical
shift*. shift*.
The shift amount is masked to the size of the register. The shift amount is masked to the size of ``x``.
When shifting a B-bits integer type, this instruction computes: When shifting a B-bits integer type, this instruction computes:
@@ -2441,7 +2441,7 @@ pub(crate) fn define(
places, shifting in sign bits to the MSB. Also called an *arithmetic places, shifting in sign bits to the MSB. Also called an *arithmetic
shift*. shift*.
The shift amount is masked to the size of the register. The shift amount is masked to the size of ``x``.
"#, "#,
&formats.binary, &formats.binary,
) )
@@ -2475,7 +2475,7 @@ pub(crate) fn define(
r#" r#"
Unsigned shift right by immediate. Unsigned shift right by immediate.
The shift amount is masked to the size of the register. The shift amount is masked to the size of ``x``.
"#, "#,
&formats.binary_imm64, &formats.binary_imm64,
) )
@@ -2492,7 +2492,7 @@ pub(crate) fn define(
r#" r#"
Signed shift right by immediate. Signed shift right by immediate.
The shift amount is masked to the size of the register. The shift amount is masked to the size of ``x``.
"#, "#,
&formats.binary_imm64, &formats.binary_imm64,
) )