|
From: | Richard Henderson |
Subject: | Re: [Qemu-ppc] [PATCH v2 1/5] target-ppc: add vector insert instructions |
Date: | Tue, 9 Aug 2016 23:50:22 +0530 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 08/09/2016 03:42 PM, Rajalakshmi Srinivasaraghavan wrote:
+ for (i = 0; i < ARRAY_SIZE(r->element); i++) { \ + result.element[i] = r->element[i]; \ + } \
memcpy, or assignment.
+ for (i = 0; i < sizeof(r->element[0]); i++) { \ + result.u8[SPLAT(element) + i] = b->u8[s + i]; \ + } \
Also memcpy.I think your mistake is in your definition of SPLAT, as pointed out by David(?) elsewhere. Any conditional should take place at translate time.
If an exception isn't legal for halfword splat=15, then forcing splat=14 (or 0, or...) would be legal, since splat=15 is undefined.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |