]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/sra-4.c
re PR target/46280 (Several testcases FAIL with 16byte alignment ABI warning on Solar...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / sra-4.c
CommitLineData
903ff275
AP
1/* { dg-do compile } */
2/* { dg-options "-O1 -fdump-tree-optimized -w" } */
8efea7a6
RO
3/* { dg-options "-O1 -fdump-tree-optimized -w -msse" { target { i?86-*-* x86_64-*-* } } } */
4/* Check that SRA replaces structures containing vectors. */
903ff275
AP
5
6#define vector __attribute__((vector_size(16)))
7
8struct vt
9{
10 vector int t;
11};
12
13
14vector int f(vector int t1, vector int t2)
15{
16 struct vt st1, st2, st3;
17 st1.t = t1;
18 st2 = st1;
19 st2.t += t2;
20 st3 = st2;
21 return st3.t;
22}
23
903ff275
AP
24/* { dg-final { scan-tree-dump-times "st" 0 "optimized" } } */
25/* { dg-final { cleanup-tree-dump "optimized" } } */
This page took 2.170977 seconds and 5 git commands to generate.