Re: [PATCH for-6.2 05/34] target/arm: Fix mask handling for MVE narrowing operations

2021-07-16 Thread Richard Henderson
On 7/13/21 6:36 AM, Peter Maydell wrote: In the MVE helpers for the narrowing operations (DO_VSHRN and DO_VSHRN_SAT) we were using the wrong bits of the predicate mask for the 'top' versions of the insn. This is because the loop works over the double-sized input elements and shifts the

[PATCH for-6.2 05/34] target/arm: Fix mask handling for MVE narrowing operations

2021-07-13 Thread Peter Maydell
In the MVE helpers for the narrowing operations (DO_VSHRN and DO_VSHRN_SAT) we were using the wrong bits of the predicate mask for the 'top' versions of the insn. This is because the loop works over the double-sized input elements and shifts the predicate mask by that many bits each time, but