| 1 |
/* PR tree-optimization/112941 */ |
| 2 |
/* { dg-do compile { target bitint } } */ |
| 3 |
/* { dg-options "-std=c23 -O2" } */ |
| 4 |
|
| 5 |
#if __BITINT_MAXWIDTH__ >= 4096 |
| 6 |
void |
| 7 |
f1 (_BitInt(4096) *p, int r, _BitInt(115) s, _BitInt(128) t, _BitInt(231) u) |
| 8 |
{ |
| 9 |
p[0] += (unsigned _BitInt(2048)) r; |
| 10 |
p[1] += (unsigned _BitInt(2048)) s; |
| 11 |
p[2] += (unsigned _BitInt(2048)) t; |
| 12 |
p[3] += (unsigned _BitInt(2048)) u; |
| 13 |
} |
| 14 |
|
| 15 |
void |
| 16 |
f2 (_BitInt(4094) *p, int r, _BitInt(115) s, _BitInt(128) t, _BitInt(231) u) |
| 17 |
{ |
| 18 |
p[0] -= (unsigned _BitInt(2048)) r; |
| 19 |
p[1] -= (unsigned _BitInt(2048)) s; |
| 20 |
p[2] -= (unsigned _BitInt(2048)) t; |
| 21 |
p[3] -= (unsigned _BitInt(2048)) u; |
| 22 |
} |
| 23 |
|
| 24 |
void |
| 25 |
f3 (_BitInt(4096) *p, int r, _BitInt(115) s, _BitInt(128) t, _BitInt(231) u) |
| 26 |
{ |
| 27 |
p[0] += (unsigned _BitInt(2110)) r; |
| 28 |
p[1] += (unsigned _BitInt(2110)) s; |
| 29 |
p[2] += (unsigned _BitInt(2110)) t; |
| 30 |
p[3] += (unsigned _BitInt(2110)) u; |
| 31 |
} |
| 32 |
|
| 33 |
void |
| 34 |
f4 (_BitInt(4094) *p, int r, _BitInt(115) s, _BitInt(128) t, _BitInt(231) u) |
| 35 |
{ |
| 36 |
p[0] -= (unsigned _BitInt(2110)) r; |
| 37 |
p[1] -= (unsigned _BitInt(2110)) s; |
| 38 |
p[2] -= (unsigned _BitInt(2110)) t; |
| 39 |
p[3] -= (unsigned _BitInt(2110)) u; |
| 40 |
} |
| 41 |
|
| 42 |
void |
| 43 |
f5 (unsigned _BitInt(4096) *p, int r, _BitInt(115) s, _BitInt(128) t, _BitInt(231) u) |
| 44 |
{ |
| 45 |
p[0] += (unsigned _BitInt(2048)) r; |
| 46 |
p[1] += (unsigned _BitInt(2048)) s; |
| 47 |
p[2] += (unsigned _BitInt(2048)) t; |
| 48 |
p[3] += (unsigned _BitInt(2048)) u; |
| 49 |
} |
| 50 |
|
| 51 |
void |
| 52 |
f6 (unsigned _BitInt(4094) *p, int r, _BitInt(115) s, _BitInt(128) t, _BitInt(231) u) |
| 53 |
{ |
| 54 |
p[0] -= (unsigned _BitInt(2048)) r; |
| 55 |
p[1] -= (unsigned _BitInt(2048)) s; |
| 56 |
p[2] -= (unsigned _BitInt(2048)) t; |
| 57 |
p[3] -= (unsigned _BitInt(2048)) u; |
| 58 |
} |
| 59 |
|
| 60 |
void |
| 61 |
f7 (unsigned _BitInt(4096) *p, int r, _BitInt(115) s, _BitInt(128) t, _BitInt(231) u) |
| 62 |
{ |
| 63 |
p[0] += (unsigned _BitInt(2110)) r; |
| 64 |
p[1] += (unsigned _BitInt(2110)) s; |
| 65 |
p[2] += (unsigned _BitInt(2110)) t; |
| 66 |
p[3] += (unsigned _BitInt(2110)) u; |
| 67 |
} |
| 68 |
|
| 69 |
void |
| 70 |
f8 (unsigned _BitInt(4094) *p, int r, _BitInt(115) s, _BitInt(128) t, _BitInt(231) u) |
| 71 |
{ |
| 72 |
p[0] -= (unsigned _BitInt(2110)) r; |
| 73 |
p[1] -= (unsigned _BitInt(2110)) s; |
| 74 |
p[2] -= (unsigned _BitInt(2110)) t; |
| 75 |
p[3] -= (unsigned _BitInt(2110)) u; |
| 76 |
} |
| 77 |
|
| 78 |
#if __SIZEOF_INT128__ |
| 79 |
void |
| 80 |
f9 (_BitInt(4096) *p, __int128 r) |
| 81 |
{ |
| 82 |
p[0] += (unsigned _BitInt(2048)) r; |
| 83 |
} |
| 84 |
|
| 85 |
void |
| 86 |
f10 (_BitInt(4094) *p, __int128 r) |
| 87 |
{ |
| 88 |
p[0] -= (unsigned _BitInt(2048)) r; |
| 89 |
} |
| 90 |
|
| 91 |
void |
| 92 |
f11 (_BitInt(4096) *p, __int128 r) |
| 93 |
{ |
| 94 |
p[0] += (unsigned _BitInt(2110)) r; |
| 95 |
} |
| 96 |
|
| 97 |
void |
| 98 |
f12 (_BitInt(4094) *p, __int128 r) |
| 99 |
{ |
| 100 |
p[0] -= (unsigned _BitInt(2110)) r; |
| 101 |
} |
| 102 |
|
| 103 |
void |
| 104 |
f13 (unsigned _BitInt(4096) *p, __int128 r) |
| 105 |
{ |
| 106 |
p[0] += (unsigned _BitInt(2048)) r; |
| 107 |
} |
| 108 |
|
| 109 |
void |
| 110 |
f14 (unsigned _BitInt(4094) *p, __int128 r) |
| 111 |
{ |
| 112 |
p[0] -= (unsigned _BitInt(2048)) r; |
| 113 |
} |
| 114 |
|
| 115 |
void |
| 116 |
f15 (unsigned _BitInt(4096) *p, __int128 r) |
| 117 |
{ |
| 118 |
p[0] += (unsigned _BitInt(2110)) r; |
| 119 |
} |
| 120 |
|
| 121 |
void |
| 122 |
f16 (unsigned _BitInt(4094) *p, __int128 r) |
| 123 |
{ |
| 124 |
p[0] -= (unsigned _BitInt(2110)) r; |
| 125 |
} |
| 126 |
#endif |
| 127 |
#else |
| 128 |
int i; |
| 129 |
#endif |