Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/pr93335.c

raw
1 /* PR target/93335 */
2 /* { dg-do compile { target int128 } } */
3
4 int
5 f1 (unsigned int x)
6 {
7 return __builtin_sub_overflow_p (x, 4096, (unsigned __int128) 0);
8 }
9
10 int
11 f2 (unsigned int x)
12 {
13 return __builtin_sub_overflow_p (x, 4097, (unsigned __int128) 0);
14 }
15
16 int
17 f3 (int x)
18 {
19 return __builtin_sub_overflow_p (x, 4096, (__int128) 0);
20 }
21
22 int
23 f4 (int x)
24 {
25 return __builtin_sub_overflow_p (x, 4097, (__int128) 0);
26 }
27
28 int
29 f5 (unsigned int x)
30 {
31 return __builtin_sub_overflow_p (x, -4096, (unsigned __int128) 0);
32 }
33
34 int
35 f6 (unsigned int x)
36 {
37 return __builtin_sub_overflow_p (x, -4097, (unsigned __int128) 0);
38 }
39
40 int
41 f7 (int x)
42 {
43 return __builtin_sub_overflow_p (x, -4096, (__int128) 0);
44 }
45
46 int
47 f8 (int x)
48 {
49 return __builtin_sub_overflow_p (x, -4097, (__int128) 0);
50 }
51
52 int
53 f9 (unsigned int x)
54 {
55 return __builtin_add_overflow_p (x, 4096, (unsigned __int128) 0);
56 }
57
58 int
59 f10 (unsigned int x)
60 {
61 return __builtin_add_overflow_p (x, 4097, (unsigned __int128) 0);
62 }
63
64 int
65 f11 (int x)
66 {
67 return __builtin_add_overflow_p (x, 4096, (__int128) 0);
68 }
69
70 int
71 f12 (int x)
72 {
73 return __builtin_add_overflow_p (x, 4097, (__int128) 0);
74 }
75
76 int
77 f13 (unsigned int x)
78 {
79 return __builtin_add_overflow_p (x, -4096, (unsigned __int128) 0);
80 }
81
82 int
83 f14 (unsigned int x)
84 {
85 return __builtin_add_overflow_p (x, -4097, (unsigned __int128) 0);
86 }
87
88 int
89 f15 (int x)
90 {
91 return __builtin_add_overflow_p (x, -4096, (__int128) 0);
92 }
93
94 int
95 f16 (int x)
96 {
97 return __builtin_add_overflow_p (x, -4097, (__int128) 0);
98 }