Port fcmp to ISLE (AArch64) (#4819)
Ported the existing implementation of `fcmp` for AArch64 to ISLE. This also ports the `lower_vector_comparison` method to ISLE. Copyright (c) 2022 Arm Limited
This commit is contained in:
@@ -397,6 +397,23 @@ macro_rules! isle_prelude_methods {
|
||||
}
|
||||
}
|
||||
|
||||
fn ty_vector_float(&mut self, ty: Type) -> Option<Type> {
|
||||
if ty.is_vector() && ty.lane_type().is_float() {
|
||||
Some(ty)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn ty_vector_not_float(&mut self, ty: Type) -> Option<Type> {
|
||||
if ty.is_vector() && !ty.lane_type().is_float() {
|
||||
Some(ty)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn ty_vec64_ctor(&mut self, ty: Type) -> Option<Type> {
|
||||
if ty.is_vector() && ty.bits() == 64 {
|
||||
|
||||
Reference in New Issue
Block a user