Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: gcc/gcc/testsuite/gcc.dg/tree-ssa/alias-16.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* { dg-do run } */ 1 /* { dg-do run } */
2 /* { dg-options "-O --param max-aliased-vops=1" } */
3 2
4 /* Compile with -O --param max-aliased-vops=1. This partitions all
5 the initial SFTs for 'm' which was causing the operand scanner to
6 miss adding the right SFTs to p->b[2]. */
7 extern void abort (void); 3 extern void abort (void);
8 4
9 struct X { 5 struct X {
10 int a; 6 int a;
11 struct Y { 7 struct Y {
12 int b[4]; 8 int b[4];
13 } b; 9 } b;
14 struct Y c; 10 struct Y c;
15 } m; 11 } m;
16 12
17 struct X n; 13 struct X n;
18 14
19 foo (int i) 15 foo (int i)
20 { 16 {
21 struct Y *p = (i > 10) ? &m.b : &n.c; 17 struct Y *p = (i > 10) ? &m.b : &n.c;
22 p->b[2] = 10; 18 p->b[2] = 10;
23 m.b.b[3] = 6; 19 m.b.b[3] = 6;
24 n.c.b[2] = 3; 20 n.c.b[2] = 3;
25 return p->b[2] + n.c.b[2] + m.b.b[3]; 21 return p->b[2] + n.c.b[2] + m.b.b[3];
26 } 22 }
27 23
28 main() 24 main()
29 { 25 {
30 if (foo (3) != 12) 26 if (foo (3) != 12)
31 abort (); 27 abort ();
32 return 0; 28 return 0;
33 } 29 }
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/tree-ssa/20070302-1.c ('k') | gcc/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698