MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / int_bin_op_64

Function int_bin_op_64

crates/parser/src/optimize.rs:607–622  ·  view source on GitHub ↗
(instr: Instruction)

Source from the content-addressed store, hash-verified

605}
606
607fn int_bin_op_64(instr: Instruction) -> Option<BinOp> {
608 Some(match instr {
609 Instruction::I64Add => BinOp::IAdd,
610 Instruction::I64Sub => BinOp::ISub,
611 Instruction::I64Mul => BinOp::IMul,
612 Instruction::I64And => BinOp::IAnd,
613 Instruction::I64Or => BinOp::IOr,
614 Instruction::I64Xor => BinOp::IXor,
615 Instruction::I64Shl => BinOp::IShl,
616 Instruction::I64ShrS => BinOp::IShrS,
617 Instruction::I64ShrU => BinOp::IShrU,
618 Instruction::I64Rotl => BinOp::IRotl,
619 Instruction::I64Rotr => BinOp::IRotr,
620 _ => return None,
621 })
622}
623
624fn float_bin_op_32(instr: Instruction) -> Option<BinOp> {
625 Some(match instr {

Callers 3

rewriteFunction · 0.85
scalar_bin_op_64Function · 0.85
scalar_const_64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected