Add back the ifcmp_sp CLIF opcode.

This opcode was removed as part of the old-backend cleanup in #3446.
While this opcode will definitely go away eventually, it is
unfortunately still used today in Lucet (as we just discovered while
working to upgrade Lucet's pinned Cranelift version). Lucet is
deprecated and slated to eventually be completely sunset in favor of
Wasmtime; but until that happens, we need to keep this opcode.
This commit is contained in:
Chris Fallin
2021-11-01 13:34:31 -07:00
parent 9e7760bd83
commit 5e96a447f0
6 changed files with 70 additions and 2 deletions

View File

@@ -448,6 +448,7 @@ where
assign(Value::or(mask_a, mask_b)?)
}
Opcode::Copy => assign(arg(0)?),
Opcode::IfcmpSp => unimplemented!("IfcmpSp"),
Opcode::Icmp => assign(icmp(
ctrl_ty,
inst.cond_code().unwrap(),