qemu-devel
[Top][All Lists]
Advanced

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

Re: [RFC PATCH 01/43] target/loongarch: Add vector data type vec_t


From: Richard Henderson
Subject: Re: [RFC PATCH 01/43] target/loongarch: Add vector data type vec_t
Date: Mon, 13 Feb 2023 09:18:55 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 2/12/23 22:24, gaosong wrote:
Hi,  Richard

在 2022/12/25 上午1:32, Richard Henderson 写道:
On 12/24/22 00:15, Song Gao wrote:
+union vec_t {
+    int8_t   B[LSX_LEN / 8];
+    int16_t  H[LSX_LEN / 16];
+    int32_t  W[LSX_LEN / 32];
+    int64_t  D[LSX_LEN / 64];
+    __int128 Q[LSX_LEN / 128];

Oh, you can't use __int128 directly.
It won't compile on 32-bit hosts.


Can we  use Int128  after include "qem/int128.h" ?
So,   some  vxx_q  instructions  can  use   int128_ xx(a, b).

Yes, certainly.

r~




reply via email to

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