URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [fold-compare-4.c] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-fdump-tree-original" } */ int test1 (int a, int b) { return a - b == a; } int test2 (int a, int b) { return a + b == a; } int test3 (int a) { return a + 5 == a; } int test4 (int a) { return a - 5 == a; } /* { dg-final { scan-tree-dump-times "b == 0" 2 "original" } } */ /* { dg-final { scan-tree-dump-times "return 0" 2 "original" } } */ /* { dg-final { cleanup-tree-dump "original" } } */
Go to most recent revision | Compare with Previous | Blame | View Log