URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-sink-9.c] - Rev 708
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-sink" } */ int foo(int *a, int r, int *b) { int ret = 0; *a = 1; if (r == 3) { *a = 5; *b = 3; } return ret; } /* *a = 1 should be sunk to the else block. */ /* { dg-final { scan-tree-dump-times "Sinking" 1 "sink" } } */ /* { dg-final { cleanup-tree-dump "sink" } } */
Go to most recent revision | Compare with Previous | Blame | View Log