| 1 |
/* { dg-do run { target int128 } } */ |
| 2 |
/* { dg-options "-Oz -fno-dce -fno-forward-propagate -flive-range-shrinkage -fweb -Wno-psabi" } */ |
| 3 |
|
| 4 |
typedef unsigned V __attribute__((vector_size (64))); |
| 5 |
typedef unsigned __int128 W __attribute__((vector_size (64))); |
| 6 |
__int128 i; |
| 7 |
V v; |
| 8 |
W w; |
| 9 |
|
| 10 |
W |
| 11 |
bar2 (V, W c) |
| 12 |
{ |
| 13 |
v |= (V){c[3]}; |
| 14 |
i = 0; |
| 15 |
return c; |
| 16 |
} |
| 17 |
|
| 18 |
W |
| 19 |
bar1 (W, W d) |
| 20 |
{ |
| 21 |
v[0] %= 2; |
| 22 |
return d; |
| 23 |
} |
| 24 |
|
| 25 |
W |
| 26 |
bar0 (V a, W b) |
| 27 |
{ |
| 28 |
W t = bar2 ((V) { }, w); |
| 29 |
(void)bar2 ((V){b[0] - a[0]}, (W){}); |
| 30 |
b += bar1 (t, (W){1}); |
| 31 |
a[5] &= __builtin_mul_overflow_p (a[0], i, 0u); |
| 32 |
return (W) a + b; |
| 33 |
} |
| 34 |
|
| 35 |
int |
| 36 |
main () |
| 37 |
{ |
| 38 |
W x = bar0 ((V) { }, (W) { }); |
| 39 |
if (x[0] != 1) |
| 40 |
__builtin_abort(); |
| 41 |
if (x[1]) |
| 42 |
__builtin_abort(); |
| 43 |
if (x[2]) |
| 44 |
__builtin_abort(); |
| 45 |
if (x[3]) |
| 46 |
__builtin_abort(); |
| 47 |
} |