Re: Nested loop vectorisation issue

2019-07-08 Thread Richard Biener
On Sun, Jul 7, 2019 at 8:40 AM Thomas Womack wrote: > > Good morning. > > I have some code that looks like > > typedef unsigned long long uint64; > typedef unsigned int uint32; > > typedef struct { uint64 x[8]; } __attribute__((aligned(64))) v_t; > > inline v_t xor(v_t a, v_t b) > { > v_t Q; >

Nested loop vectorisation issue

2019-07-06 Thread Thomas Womack
Good morning. I have some code that looks like typedef unsigned long long uint64; typedef unsigned int uint32; typedef struct { uint64 x[8]; } __attribute__((aligned(64))) v_t; inline v_t xor(v_t a, v_t b) { v_t Q; for (int i=0; i<8; i++) Q.x[i] = a.x[i] ^ b.x[i]; return Q; } void xor_ma