URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [forwprop-10.c] - Rev 298
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-forwprop1" } */ int b; unsigned a; static inline int *g(void) { a = 1; return (int*)&a; } void test2(void) { b = *g(); } /* The indirect load should be replaced by a load from a and a conversion to int. */ /* { dg-final { scan-tree-dump "= a;" "forwprop1" } } */ /* { dg-final { scan-tree-dump "= \\\(int\\\) " "forwprop1" } } */ /* { dg-final { scan-tree-dump-not "= \\\*" "forwprop1" } } */ /* { dg-final { cleanup-tree-dump "forwprop1" } } */
Go to most recent revision | Compare with Previous | Blame | View Log