URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr36881.c] - Rev 689
Compare with Previous | Blame | View Log
/* PR tree-optimization/36881 */ /* { dg-do compile { target fpic } } */ /* { dg-options "-O2 -fpic -fdump-tree-switchconv-all" } */ const char *foo (int i) { const char *p; switch (i) { case 0: case 6: p = ""; break; case 1: case 7: p = "abc"; break; case 2: case 8: p = "def"; break; default: p = "ghi"; break; } return p; } /* { dg-final { scan-assembler-not "CSWTCH" } } */ /* { dg-final { scan-tree-dump "need runtime relocations" "switchconv" } } */ /* { dg-final { cleanup-tree-dump "switchconv" } } */