x64: Finish migrating brz and brnz to ISLE (#4614)
https://github.com/bytecodealliance/wasmtime/pull/4614
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
// Pull in the ISLE generated code.
|
||||
pub(crate) mod generated_code;
|
||||
use crate::{
|
||||
ir::types,
|
||||
ir::AtomicRmwOp,
|
||||
machinst::{InputSourceInst, Reg, Writable},
|
||||
};
|
||||
@@ -561,6 +562,16 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn ty_int_bool_or_ref(&mut self, ty: Type) -> Option<()> {
|
||||
match ty {
|
||||
types::I8 | types::I16 | types::I32 | types::I64 | types::R64 => Some(()),
|
||||
types::B1 | types::B8 | types::B16 | types::B32 | types::B64 => Some(()),
|
||||
types::R32 => panic!("shouldn't have 32-bits refs on x64"),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn intcc_neq(&mut self, x: &IntCC, y: &IntCC) -> Option<IntCC> {
|
||||
if x != y {
|
||||
|
||||
Reference in New Issue
Block a user