| 1 |
/* { dg-do run { target { riscv_v } } } */ |
| 2 |
/* { dg-options "-mrvv-vector-bits=zvl -O3 -mrvv-max-lmul=m8" } */ |
| 3 |
|
| 4 |
#include "trailing-1.c" |
| 5 |
|
| 6 |
int |
| 7 |
main () |
| 8 |
{ |
| 9 |
int64_t a = -1789089; |
| 10 |
int64_t b = 8916156; |
| 11 |
int64_t c = -7789; |
| 12 |
int64_t d = 9156; |
| 13 |
|
| 14 |
int64_t v_v16di[sizeof (v16di) / sizeof (int64_t)]; |
| 15 |
f_v16di (a, b, c, d, v_v16di); |
| 16 |
|
| 17 |
for (int i = 0; i < sizeof (v16di) / sizeof (int64_t); i++) |
| 18 |
{ |
| 19 |
if (i == 0) |
| 20 |
{ |
| 21 |
if (v_v16di[i] != a) |
| 22 |
__builtin_abort (); |
| 23 |
} |
| 24 |
else if (i == 1) |
| 25 |
{ |
| 26 |
if (v_v16di[i] != b) |
| 27 |
__builtin_abort (); |
| 28 |
} |
| 29 |
else if (i == 2) |
| 30 |
{ |
| 31 |
if (v_v16di[i] != c) |
| 32 |
__builtin_abort (); |
| 33 |
} |
| 34 |
else |
| 35 |
{ |
| 36 |
if (v_v16di[i] != d) |
| 37 |
__builtin_abort (); |
| 38 |
} |
| 39 |
} |
| 40 |
|
| 41 |
return 0; |
| 42 |
} |