1 2 3 4 5 6 7 8 9 10 11 12 13
/* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ #define vector __attribute__((vector_size(16) )) struct ss { vector float mVec; }; vector float getCapsule(vector int t) { vector float t1 = (vector float)t; struct ss y = {t1}; *((float*)&y.mVec) = 1.0; return y.mVec; }