arch-arm: Fix index generation for VecElem operands
Current operand generation is not providing VecElems with the right
vector index and element index.
The bug was covered when registers were 128 bit wide, but with SVE we
have augmented the vector register size and the bug has been exposed.
E.g. With dest = 2,
FpDestP2 = (vec_index = 0, elem_index = 4)
whereas it should be
FpDestP2 = (vec_index = 1, elem_index = 0)
Signed-off-by: Giacomo Travaglini <email@example.com>
Reviewed-by: Ciro Santilli <firstname.lastname@example.org>
1 file changed