OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / sse-16.c
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -msse" } */
3
4 typedef float __vr __attribute__ ((vector_size (16)));
5
6 struct vector
7 {
8   union
9   {
10     __vr v;
11     float f[4];
12   };
13 };
14
15 void
16 doit ()
17 {
18   float f[4];
19   struct vector v;
20
21   f[0] = 0;
22   f[1] = 1;
23   f[2] = 2;
24   f[3] = 3;
25
26   v.v = __builtin_ia32_loadups (f);
27 }