|
From: | Richard Henderson |
Subject: | Re: [RFC PATCH 10/43] target/loongarch: Implement vaddw/vsubw |
Date: | Mon, 20 Feb 2023 07:21:05 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
On 2/19/23 21:47, gaosong wrote:
I have some questions: 1 Should we need implement GVecGen* for simple gvec instructiosn? such as add, sub , or , xor..
No, these are done generically.
2 Should we need implement all fni8/fni4, fniv, fno?
You need not implement them all. Generally you will only implement fni4 for 32-bit arithmetic operations, and only fni8 for logical operations; there is rarely a cause for both with the same operation.
You can rely on the generic cutoff of 4 integer inline operations -- easy for your maximum vector length of 128-bits -- to avoid implementing fno.
But in extreme, you can implement only fno. You can choose this over directly calling a helper function, minimizing differences in the translator code paths and letting generic code build all of the pointers.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |