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:
Damian Heaton
2022-07-25 21:00:43 +01:00
committed by GitHub
parent c5ddb4b803
commit 3ef89b7787
7 changed files with 119 additions and 48 deletions

View File

@@ -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"));