From 431077af15b65da493acea0e36881958a50ce89a Mon Sep 17 00:00:00 2001 From: LaoLittle Date: Sat, 28 Feb 2026 11:49:31 -0600 Subject: [PATCH] Fix doc typo, the behavior is actually selecting 'x' if the bit in 'c' is 1 --- cranelift/codegen/meta/src/shared/instructions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cranelift/codegen/meta/src/shared/instructions.rs b/cranelift/codegen/meta/src/shared/instructions.rs index a27ca30aab4a..29c56266105a 100644 --- a/cranelift/codegen/meta/src/shared/instructions.rs +++ b/cranelift/codegen/meta/src/shared/instructions.rs @@ -1652,7 +1652,7 @@ pub(crate) fn define( Conditional select of bits. For each bit in `c`, this instruction selects the corresponding bit from `x` if the bit - in `x` is 1 and the corresponding bit from `y` if the bit in `c` is 0. See also: + in `c` is 1 and the corresponding bit from `y` if the bit in `c` is 0. See also: `select`. "#, &formats.ternary,