[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3-a 26/27] target/arm: Extend vec_reg_offset to
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v3-a 26/27] target/arm: Extend vec_reg_offset to larger sizes |
Date: |
Thu, 17 May 2018 17:56:06 +0100 |
On 17 May 2018 at 17:51, Richard Henderson <address@hidden> wrote:
> On 05/17/2018 08:57 AM, Peter Maydell wrote:
>> This looks right for element sizes up to 8, but I don't understand
>> how it handles 16 byte elements as the commit message says -- the
>> d[0] and d[1] are the wrong way round and don't form a single
>> 16-byte big-endian value, so they must need special casing somewhere
>> else ?
>
> You're right that it's not a proper int128 for host arithmetic. Fortunately,
> the only operation we have on 128-bit values, at present, is move.
>
> How better might you word the commit message?
You could add in the comment in the function something like:
"For 32 byte elements, we return an offset of zero. The two halves will
not form a host int128 if the host is bigendian, since they're in
the wrong order. However the only 32 byte operation we have is a move,
so we can ignore this for the moment. More complicated 32 byte operations
would have to special case loading and storing from the zregs array."
thanks
-- PMM
- [Qemu-devel] [PATCH v3-a 14/27] target/arm: Implement SVE Integer Multiply-Add Group, (continued)
- [Qemu-devel] [PATCH v3-a 14/27] target/arm: Implement SVE Integer Multiply-Add Group, Richard Henderson, 2018/05/16
- [Qemu-devel] [PATCH v3-a 19/27] target/arm: Implement SVE Compute Vector Address Group, Richard Henderson, 2018/05/16
- [Qemu-devel] [PATCH v3-a 21/27] target/arm: Implement SVE floating-point trig select coefficient, Richard Henderson, 2018/05/16
- [Qemu-devel] [PATCH v3-a 23/27] target/arm: Implement SVE Bitwise Immediate Group, Richard Henderson, 2018/05/16
- [Qemu-devel] [PATCH v3-a 22/27] target/arm: Implement SVE Element Count Group, Richard Henderson, 2018/05/16
- [Qemu-devel] [PATCH v3-a 20/27] target/arm: Implement SVE floating-point exponential accelerator, Richard Henderson, 2018/05/16
- [Qemu-devel] [PATCH v3-a 24/27] target/arm: Implement SVE Integer Wide Immediate - Predicated Group, Richard Henderson, 2018/05/16
- [Qemu-devel] [PATCH v3-a 26/27] target/arm: Extend vec_reg_offset to larger sizes, Richard Henderson, 2018/05/16
- [Qemu-devel] [PATCH v3-a 25/27] target/arm: Implement SVE Permute - Extract Group, Richard Henderson, 2018/05/16
- [Qemu-devel] [PATCH v3-a 27/27] target/arm: Implement SVE Permute - Unpredicated Group, Richard Henderson, 2018/05/16
- Re: [Qemu-devel] [PATCH v3-a 00/27] target/arm: Scalable Vector Extension, no-reply, 2018/05/17
- Re: [Qemu-devel] [PATCH v3-a 00/27] target/arm: Scalable Vector Extension, Peter Maydell, 2018/05/18