URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr20583.c] - Rev 378
Go to most recent revision | Compare with Previous | Blame | View Log
/* PR target/20583 On m68k-none-elf, CSE used to generate (set (reg:HI ...) (const:HI (truncate:HI (minus:SI (label_ref ...) (label_ref ...))))) which output functions do not know how to handle. Make sure that such a constant will be rejected. */ void bar (unsigned int); void foo (void) { char buf[1] = { 3 }; const char *p = buf; const char **q = &p; unsigned int ch; switch (**q) { case 1: ch = 5; break; case 2: ch = 4; break; case 3: ch = 3; break; case 4: ch = 2; break; case 5: ch = 1; break; default: ch = 0; break; } bar (ch); }
Go to most recent revision | Compare with Previous | Blame | View Log