Dont add varying values to gori_on_edge mass calculations.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / slsr-27.c
blobc8f8e612da2da2676edd08b6e314bf30502a602c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dom3" } */
4 struct x
6 int a[16];
7 int b[16];
8 int c[16];
9 };
11 extern void foo (int, int, int);
13 void
14 f (struct x *p, unsigned int n)
16 foo (p->a[n], p->c[n], p->b[n]);
19 /* { dg-final { scan-tree-dump-times "\\* 4;" 1 "dom3" { target { int32 } } } } */
20 /* { dg-final { scan-tree-dump-times "\\* 2;" 1 "dom3" { target { int16 } } } } */
21 /* { dg-final { scan-tree-dump-times "p_\\d\+\\(D\\) \\+ \[^\r\n\]*_\\d\+;" 1 "dom3" } } */
23 { dg-final { scan-tree-dump-times "MEM *<int>? *\\\[\\(struct x \\*\\)\[^\r\n\]*_\\d\+" 3 "dom3" } } */