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~