qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v6 51/57] target/loongarch: Implement xvinsgr2vr xvpickve2gr


From: Richard Henderson
Subject: Re: [PATCH v6 51/57] target/loongarch: Implement xvinsgr2vr xvpickve2gr
Date: Wed, 13 Sep 2023 20:02:43 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0

On 9/13/23 19:26, Song Gao wrote:
+static inline int vec_reg_offset(int regno, int index, MemOp mop)
+{
+    const uint8_t size = 1 << mop;
+    int offs = index * size;
+
+#if HOST_BIG_ENDIAN
+    if (size < 8 ) {
+        offs ^ = (8 - size);
+    }
+#endif
+    return offs + vec_full_offset(regno);
+}

Merge the #if into the if:

   if (HOST_BIG_ENDIAN && size < 8)

Otherwise,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]