|
From: | Richard Henderson |
Subject: | Re: [Qemu-ppc] [PATCH v2 1/2] target-ppc: implement vnegw/d instructions |
Date: | Wed, 19 Oct 2016 09:07:39 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
On 10/18/2016 11:06 PM, Nikunj A Dadhania wrote:
+#define VNEG(name, element) \ +void helper_##name(ppc_avr_t *r, ppc_avr_t *b) \ +{ \ + int i; \ + VECTOR_FOR_INORDER_I(i, element) { \ + r->element[i] = -b->element[i]; \ + } \ +} +VNEG(vnegw, s32) +VNEG(vnegd, s64) +#undef VNEG +
I will note that vnegd could be implemented in two insns. But for simplicity I'm ok with this.
Reviewed-by: Richard Henderson <address@hidden> r~
[Prev in Thread] | Current Thread | [Next in Thread] |