Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / sra-4.c
blob2ebcb05142469e183063e8b361307a5b79c02ce4
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized -w" } */
3 /* { dg-options "-O1 -fdump-tree-optimized -w -msse" { target { i?86-*-* x86_64-*-* } } } */
4 /* Check that SRA replaces structures containing vectors. */
6 #define vector __attribute__((vector_size(16)))
8 struct vt
10 vector int t;
14 vector int f(vector int t1, vector int t2)
16 struct vt st1, st2, st3;
17 st1.t = t1;
18 st2 = st1;
19 st2.t += t2;
20 st3 = st2;
21 return st3.t;
24 /* { dg-final { scan-tree-dump-times "st" 0 "optimized" } } */