x64: Migrate selectif and selectif_spectre_guard to ISLE (#4619)

https://github.com/bytecodealliance/wasmtime/pull/4619
This commit is contained in:
Trevor Elliott
2022-08-05 09:36:11 -07:00
committed by GitHub
parent 1ce9e8aa5f
commit 0c2a48f682
4 changed files with 26 additions and 231 deletions

View File

@@ -645,21 +645,6 @@ impl Inst {
}
}
pub(crate) fn xmm_cmove(ty: Type, cc: CC, src: RegMem, dst: Writable<Reg>) -> Inst {
debug_assert!(ty == types::F32 || ty == types::F64 || ty.is_vector());
src.assert_regclass_is(RegClass::Float);
debug_assert!(dst.to_reg().class() == RegClass::Float);
let src = XmmMem::new(src).unwrap();
let dst = WritableXmm::from_writable_reg(dst).unwrap();
Inst::XmmCmove {
ty,
cc,
consequent: src,
alternative: dst.to_reg(),
dst,
}
}
pub(crate) fn push64(src: RegMemImm) -> Inst {
src.assert_regclass_is(RegClass::Int);
let src = GprMemImm::new(src).unwrap();