Port vconst to ISLE (AArch64) (#4750)
* Port `vconst` to ISLE (AArch64) Ported the existing implementation of `vconst` to ISLE for AArch64, and added support for 64-bit vector constants. Also introduced 64-bit `vconst` support to the interpreter. Copyright (c) 2022 Arm Limited * Replace if-chains with match statements Copyright (c) 2022 Arm Limited
This commit is contained in:
@@ -683,6 +683,12 @@ macro_rules! isle_prelude_methods {
|
||||
Some(u128::from_le_bytes(bytes.try_into().ok()?))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn u64_from_constant(&mut self, constant: Constant) -> Option<u64> {
|
||||
let bytes = self.lower_ctx.get_constant_data(constant).as_slice();
|
||||
Some(u64::from_le_bytes(bytes.try_into().ok()?))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn u128_from_constant(&mut self, constant: Constant) -> Option<u128> {
|
||||
let bytes = self.lower_ctx.get_constant_data(constant).as_slice();
|
||||
|
||||
Reference in New Issue
Block a user