1 /* PR tree-optimization/31261 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-original" } */
8 return (8 - (a
& 7)) & 7;
14 return (16 + (b
& 7)) & 15;
20 return -(c
& 63) & 31;
26 return (12 - (d
& 15)) & 7;
32 return (12 - (e
& 7)) & 15;
35 /* { dg-final { scan-tree-dump-times "return -a \& 7;" 1 "original" } } */
36 /* { dg-final { scan-tree-dump-times "return b \& 7;" 1 "original" } } */
37 /* { dg-final { scan-tree-dump-times "return \\(char\\) -\\(unsigned char\\) c \& 31;" 1 "original" } } */
38 /* { dg-final { scan-tree-dump-times "return \\(int\\) \\(12 - \\(unsigned int\\) d\\) \& 7;" 1 "original" } } */
39 /* { dg-final { scan-tree-dump-times "return 12 - \\(e \& 7\\) \& 15;" 1 "original" } } */
40 /* { dg-final { cleanup-tree-dump "original" } } */