A bug in the VecPredRegContainer::as method was introduced by a past commit [1]. The commit was not properly handling the case of a Packed representation If Packed == true -> NumElement = NumBits instead of NumElements = NumBits / sizeof(VecElem) This patch is fixing it [1]: https://gem5-review.googlesource.com/c/public/gem5/+/42000 Change-Id: I308769c3938d0fac84316936f732a6c383146484 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/51867 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>