URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [inline-5.c] - Rev 706
Go to most recent revision | Compare with Previous | Blame | View Log
/* Check statements that are eliminated by inlining. */ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-inline-details -fno-early-inlining -fno-partial-inlining -fno-ipa-cp" } */ struct a {int a,b,c,d,e;}; void accessfield (struct a a) { t(a.a); /* Should compile as: tmp = a.a Will be eliminated by inlining t (tmp); */ t2(&a); t(a.a); return; /* Will be eliminated by inlining */ } void accessreference (struct a *a) { t(a->a); /* Should compile as: a.0_1 = a; Will be eliminated by inlining tmp = a.0_1->a; 50% will be eliminated by inlining t (tmp) */ t2(&a); return; /* Will be eliminated by inlining */ } /* { dg-final { scan-ipa-dump-times "Will be eliminated" 4 "inline" { xfail { { hppa*-*-* } && { ! lp64 } } } } } */ /* { dg-final { scan-ipa-dump-times "50. will be eliminated" 1 "inline" } } */ /* { dg-final { cleanup-ipa-dump "inline" } } */
Go to most recent revision | Compare with Previous | Blame | View Log