cranelift: port sshr to ISLE on x64 (#3681)
This commit is contained in:
@@ -95,11 +95,6 @@ macro_rules! isle_prelude_methods {
|
||||
ty.bits().try_into().unwrap()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn ty_bits_mask(&mut self, ty: Type) -> u64 {
|
||||
(1 << (self.ty_bits(ty) as u64)) - 1
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn ty_bits_u16(&mut self, ty: Type) -> u16 {
|
||||
ty.bits()
|
||||
@@ -260,6 +255,21 @@ macro_rules! isle_prelude_methods {
|
||||
n => Some(n as u64),
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn u32_add(&mut self, a: u32, b: u32) -> u32 {
|
||||
a.wrapping_add(b)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn u8_and(&mut self, a: u8, b: u8) -> u8 {
|
||||
a & b
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn lane_type(&mut self, ty: Type) -> Type {
|
||||
ty.lane_type()
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user