* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr20583.c
blob6c5f891d3d0ed8c1332ecafb4cb01560d1795c55
1 /* PR target/20583
2 On m68k-none-elf, CSE used to generate
4 (set (reg:HI ...)
5 (const:HI (truncate:HI (minus:SI (label_ref ...)
6 (label_ref ...)))))
8 which output functions do not know how to handle. Make sure that
9 such a constant will be rejected. */
11 void bar (unsigned int);
13 void
14 foo (void)
16 char buf[1] = { 3 };
17 const char *p = buf;
18 const char **q = &p;
19 unsigned int ch;
20 switch (**q)
22 case 1: ch = 5; break;
23 case 2: ch = 4; break;
24 case 3: ch = 3; break;
25 case 4: ch = 2; break;
26 case 5: ch = 1; break;
27 default: ch = 0; break;
29 bar (ch);