gcc/testsuite/gcc.target/i386/pr85342.c
raw| 1 | /* PR rtl-optimization/85342 */ |
| 2 | /* { dg-do compile { target int128 } } */ |
| 3 | /* { dg-options "-O2 -mavx512vl" } */ |
| 4 | |
| 5 | typedef unsigned char U __attribute__((vector_size (64))); |
| 6 | typedef unsigned int V __attribute__((vector_size (64))); |
| 7 | typedef unsigned __int128 W __attribute__((vector_size (64))); |
| 8 | int i; |
| 9 | V g, h, z, k, l, m; |
| 10 | U j; |
| 11 | |
| 12 | W |
| 13 | bar (W o, W p) |
| 14 | { |
| 15 | U q; |
| 16 | o |= (W){q[0]} >= o; |
| 17 | o += 1 < o; |
| 18 | j |= (U){} == j; |
| 19 | return i + (W)q + (W)g + (W)h + (W)z + o + (W)j + (W)k + (W)l + (W)m + p; |
| 20 | } |
| 21 | |
| 22 | W |
| 23 | foo (U u) |
| 24 | { |
| 25 | U q; |
| 26 | W r = bar ((W)(U){0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ~0}, (W)q); |
| 27 | u += (U)bar ((W){~0}, r); |
| 28 | return (W)u; |
| 29 | } |