1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-store_ccp" } */
4 extern void link_error (void);
10 unsigned int l
= 3 * 4 - 5 / 2;
17 unsigned int l
= (((((((3 / 2 + 2) * 4) & 7) ^ 3) % 8) << 2) + 1) >> 2;
22 /* cprop in a basic block */
25 unsigned int l0
= 3 / 2 + 2;
26 unsigned int l1
= l0
* 4;
28 unsigned int l3
= l1
& l2
;
30 unsigned int l5
= l3
^ l4
;
32 unsigned int l7
= l5
% l6
;
34 unsigned int l9
= l7
<< l8
;
35 unsigned int l10
= l9
+ 1;
36 unsigned int l11
= l10
>> 2;
42 /* cprop after an if statement */
48 if ((67 + l
- 25) != 95)
53 if ((93 - l
+ 25) != 65)
58 /* cprop after a loop */
59 void test11111 (int p
, int q
, int r
)
64 if ((67 + l
- 25) != 95)
72 /* There should be not link_error calls, if there is any the
73 optimization has failed */
74 /* { dg-final { scan-tree-dump-times "link_error" 0 "store_ccp"} } */
75 /* { dg-final { cleanup-tree-dump "store_ccp" } } */