2 /* PR tree-optimization/61725 */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -fdump-tree-vrp1" } */
5 /* { dg-final { scan-tree-dump-not "link_error" "vrp1"} } */
7 #define A(fn, arg, min, max) \
8 if (__builtin_##fn (arg) < min || __builtin_##fn (arg) > max) \
10 #define B(fn, min, max) \
11 A (fn, a, min, max) A (fn##l, b, min, max) A (fn##ll, c, min, max)
12 #define C(fn, min, sub) \
13 A (fn, a, min, ((int) sizeof (a) * __CHAR_BIT__ - sub)) \
14 A (fn##l, b, min, ((int) sizeof (b) * __CHAR_BIT__ - sub)) \
15 A (fn##ll, c, min, ((int) sizeof (c) * __CHAR_BIT__ - sub))
17 extern void link_error (void);
24 foo (int a
, long b
, long long c
)
27 a
&= 63; b
&= 63; c
&= 63;
31 a
-= 2; b
-= 2; c
-= 2;
33 a
-= 63; b
-= 63; c
-= 63;