Allow 64-bit vectors and implement for interpreter (#4509)
* Allow 64-bit vectors and implement for interpreter The AArch64 backend already supports 64-bit vectors; this simply allows instructions to make use of that. Implemented support for 64-bit vectors within the interpreter to allow interpret runtests to use them. Copyright (c) 2022 Arm Limited * Disable 64-bit SIMD `iaddpairwise` tests on s390x Copyright (c) 2022 Arm Limited
This commit is contained in:
@@ -2622,7 +2622,11 @@ impl<'a> Parser<'a> {
|
||||
let as_vec = self.match_uimm128(ty)?.into_vec();
|
||||
if as_vec.len() == 16 {
|
||||
let mut as_array = [0; 16];
|
||||
as_array.copy_from_slice(&as_vec[..16]);
|
||||
as_array.copy_from_slice(&as_vec[..]);
|
||||
DataValue::from(as_array)
|
||||
} else if as_vec.len() == 8 {
|
||||
let mut as_array = [0; 8];
|
||||
as_array.copy_from_slice(&as_vec[..]);
|
||||
DataValue::from(as_array)
|
||||
} else {
|
||||
return Err(self.error("only 128-bit vectors are currently supported"));
|
||||
|
||||
Reference in New Issue
Block a user