summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/vector-2.c
blob: e04d55588e5560ffbb82afc916b5257ffe81ae16 (plain)
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;
}