From 71d3b638f315ccaaff5fc7b49ba2064f67f295db Mon Sep 17 00:00:00 2001 From: Alexa VanHattum Date: Sun, 9 Apr 2023 16:01:49 -0400 Subject: [PATCH] Clarify instructions.rs documentation for ushr/ashr (narrow values) (#6186) --- cranelift/codegen/meta/src/shared/instructions.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cranelift/codegen/meta/src/shared/instructions.rs b/cranelift/codegen/meta/src/shared/instructions.rs index 36c76a612a..21ff5ad344 100755 --- a/cranelift/codegen/meta/src/shared/instructions.rs +++ b/cranelift/codegen/meta/src/shared/instructions.rs @@ -2415,7 +2415,7 @@ pub(crate) fn define( places, shifting in zero bits to the MSB. Also called a *logical 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: @@ -2441,7 +2441,7 @@ pub(crate) fn define( places, shifting in sign bits to the MSB. Also called an *arithmetic shift*. - The shift amount is masked to the size of the register. + The shift amount is masked to the size of ``x``. "#, &formats.binary, ) @@ -2475,7 +2475,7 @@ pub(crate) fn define( r#" 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, ) @@ -2492,7 +2492,7 @@ pub(crate) fn define( r#" 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, )