1 /* PR tree-optimization/104675 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4
5 _Complex unsigned int
6 foo (_Complex unsigned int x)
7 {
8 return (x / 2) * 2;
9 }
10
11 _Complex unsigned int
12 bar (_Complex unsigned int x)
13 {
14 return (x * 2) / 2;
15 }
16
17 _Complex unsigned int
18 baz (_Complex unsigned int x)
19 {
20 _Complex unsigned int y = x / 2;
21 return y * 2;
22 }
23
24 _Complex unsigned int
25 qux (_Complex unsigned int x)
26 {
27 _Complex unsigned int y = x * 2;
28 return y / 2;
29 }