On 20/8/26 23:51, Brian Cain wrote:
The masked histogram instructions save the predicate operand to the qtmp
temporary with a gvec move sized sizeof(MMVector). Both source and
destination are MMQReg, which is eight times smaller, so the move read
112 bytes past the predicate register and wrote them over the fields
following qtmp in CPUHexagonState, that is vstore[0]. Use the size of
the registers actually being copied.
Signed-off-by: Brian Cain <[email protected]>
---
target/hexagon/gen_tcg_hvx.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Fixes: 7ba7657bc93 ("Hexagon HVX helper overrides for histogram
instructions")
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>