Re: [PATCH for-6.2 07/34] target/arm: Fix calculation of LTP mask when LR is 0

2021-07-16 Thread Richard Henderson
On 7/13/21 6:36 AM, Peter Maydell wrote: In mve_element_mask(), we calculate a mask for tail predication which should have a number of 1 bits based on the value of LR. However, our MAKE_64BIT_MASK() macro has undefined behaviour when passed a zero length. Special case this to give the all-zeroe

[PATCH for-6.2 07/34] target/arm: Fix calculation of LTP mask when LR is 0

2021-07-13 Thread Peter Maydell
In mve_element_mask(), we calculate a mask for tail predication which should have a number of 1 bits based on the value of LR. However, our MAKE_64BIT_MASK() macro has undefined behaviour when passed a zero length. Special case this to give the all-zeroes mask we require. Signed-off-by: Peter Ma