A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
[Cranelift] generate rotate ops (#12759)
Bongjun Jang05f7f4a44eb0
diff --git a/cranelift/codegen/meta/src/gen_isle.rs b/cranelift/codegen/meta/src/gen_isle.rsindex 79755ca363..52bc7826df 100644--- a/cranelift/codegen/meta/src/gen_isle.rs+++ b/cranelift/codegen/meta/src/gen_isle.rs@@ -785,6 +785,16 @@ impl NumericOp<'_> {body: r#"a.checked_shr(b).unwrap_or_else(|| panic!("shr overflow: {a} >> {b}"))"#,..shift.clone()},+ NumericOp {+ name: "rotl",+ body: "a.rotate_left(b)",+ ..shift.clone()+ },+ NumericOp {+ name: "rotr",+ body: "a.rotate_right(b)",+ ..shift.clone()+ },// Predicates.//// We generate both pure constructors and a variety of extractors