summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/vector-1.c
blob: 9be0be19bcaabebfaa11daeac3464d7ecc38419a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */
#define vector __attribute__((vector_size(16) ))
struct ss
{
 vector float mVec;
};
float getCapsule(vector int t)
{
 vector float t1 = (vector float)t;
 struct ss y = {t1};
 return *((float*)&y.mVec);
}