[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tests/tcg/ppc64le: remove INT128 requirement to run non_sign
From: |
Richard Henderson |
Subject: |
Re: [PATCH] tests/tcg/ppc64le: remove INT128 requirement to run non_signalling_xscv |
Date: |
Fri, 17 Dec 2021 15:54:31 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
On 12/16/21 6:09 AM, matheus.ferst@eldorado.org.br wrote:
+ asm("mtvsrd 0, %3\n\t" \
+ "xxswapd 0, 0\n\t" \
+ "mtvsrd 0, %2\n\t" \
This doesn't work. The lower half of vs0 is undefined after mtvsrd.
You actually want mtvsrdd 0, %2, %3, with "b" as the constraint for bh.
+ "mfvsrd %0, 0\n\t" \
+ "xxswapd 0, 0\n\t" \
+ "mfvsrd %1, 0\n\t" \
Drop the xxswapd and use mfvsrld.
Otherwise it looks ok.
r~