1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 #define SHIFT ((8*__SIZEOF_INT__)-1)
6 int test_rshift_1(int x
)
12 int test_rshift_2(int x
)
14 unsigned int t
= (unsigned int)x
>> SHIFT
;
18 int test_rshift_3(int x
)
20 int t
= (unsigned int)x
>> SHIFT
;
24 int test_rshift_4(int x
)
26 unsigned int t
= x
>> SHIFT
;
30 double test_mul_1(double x
)
36 double test_mul_2(double x
, double y
)
43 double test_rdiv_1(double x
, double y
)
50 double test_rdiv_2(double x
, double y
)
57 /* { dg-final { scan-tree-dump-not " -" "optimized" } } */