Re: [PATCH] target/arm: Fix return value from LDSMIN/LDSMAX 8/16 bit atomics

2023-06-02 Thread Richard Henderson
On 6/2/23 07:22, Peter Maydell wrote: The atomic memory operations are supposed to return the old memory data value in the destination register. This value is not sign-extended, even if the operation is the signed minimum or maximum. (In the pseudocode for the instructions the returned data val

Re: [PATCH] target/arm: Fix return value from LDSMIN/LDSMAX 8/16 bit atomics

2023-06-02 Thread Philippe Mathieu-Daudé
On 2/6/23 16:22, Peter Maydell wrote: The atomic memory operations are supposed to return the old memory data value in the destination register. This value is not sign-extended, even if the operation is the signed minimum or maximum. (In the pseudocode for the instructions the returned data val

[PATCH] target/arm: Fix return value from LDSMIN/LDSMAX 8/16 bit atomics

2023-06-02 Thread Peter Maydell
The atomic memory operations are supposed to return the old memory data value in the destination register. This value is not sign-extended, even if the operation is the signed minimum or maximum. (In the pseudocode for the instructions the returned data value is passed to ZeroExtend() to create t