[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH v2 59/67] target/arm: Implement SVE Floating Point
From: |
Richard Henderson |
Subject: |
Re: [Qemu-arm] [PATCH v2 59/67] target/arm: Implement SVE Floating Point Multiply Indexed Group |
Date: |
Tue, 27 Feb 2018 08:29:14 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 02/27/2018 07:18 AM, Peter Maydell wrote:
> On 17 February 2018 at 18:23, Richard Henderson
> <address@hidden> wrote:
>> Signed-off-by: Richard Henderson <address@hidden>
>> ---
>> target/arm/helper.h | 14 ++++++++++
>> target/arm/translate-sve.c | 44 +++++++++++++++++++++++++++++++
>> target/arm/vec_helper.c | 64
>> ++++++++++++++++++++++++++++++++++++++++++++++
>> target/arm/sve.decode | 19 ++++++++++++++
>> 4 files changed, 141 insertions(+)
>
>> diff --git a/target/arm/vec_helper.c b/target/arm/vec_helper.c
>> index ad5c29cdd5..e711a3217d 100644
>> --- a/target/arm/vec_helper.c
>> +++ b/target/arm/vec_helper.c
>> @@ -24,6 +24,22 @@
>> #include "fpu/softfloat.h"
>>
>>
>> +/* Note that vector data is stored in host-endian 64-bit chunks,
>> + so addressing units smaller than that needs a host-endian fixup. */
>> +#ifdef HOST_WORDS_BIGENDIAN
>> +#define H1(x) ((x) ^ 7)
>> +#define H1_2(x) ((x) ^ 6)
>> +#define H1_4(x) ((x) ^ 4)
>> +#define H2(x) ((x) ^ 3)
>> +#define H4(x) ((x) ^ 1)
>> +#else
>> +#define H1(x) (x)
>> +#define H1_2(x) (x)
>> +#define H1_4(x) (x)
>> +#define H2(x) (x)
>> +#define H4(x) (x)
>> +#endif
>> +
>
> I wasn't expecting to see these macros here. Don't we have them already?
Not in this file. Probably I should share these in a header...
r~
- [Qemu-arm] [PATCH v2 55/67] target/arm: Implement SVE gather loads, (continued)
- [Qemu-arm] [PATCH v2 55/67] target/arm: Implement SVE gather loads, Richard Henderson, 2018/02/17
- [Qemu-arm] [PATCH v2 56/67] target/arm: Implement SVE scatter store vector immediate, Richard Henderson, 2018/02/17
- [Qemu-arm] [PATCH v2 57/67] target/arm: Implement SVE floating-point compare vectors, Richard Henderson, 2018/02/17
- [Qemu-arm] [PATCH v2 58/67] target/arm: Implement SVE floating-point arithmetic with immediate, Richard Henderson, 2018/02/17
- [Qemu-arm] [PATCH v2 59/67] target/arm: Implement SVE Floating Point Multiply Indexed Group, Richard Henderson, 2018/02/17
- [Qemu-arm] [PATCH v2 60/67] target/arm: Implement SVE FP Fast Reduction Group, Richard Henderson, 2018/02/17
- [Qemu-arm] [PATCH v2 61/67] target/arm: Implement SVE Floating Point Unary Operations - Unpredicated Group, Richard Henderson, 2018/02/17
- [Qemu-arm] [PATCH v2 62/67] target/arm: Implement SVE FP Compare with Zero Group, Richard Henderson, 2018/02/17
- [Qemu-arm] [PATCH v2 63/67] target/arm: Implement SVE floating-point trig multiply-add coefficient, Richard Henderson, 2018/02/17
- [Qemu-arm] [PATCH v2 64/67] target/arm: Implement SVE floating-point convert precision, Richard Henderson, 2018/02/17