| 1 |
/* { dg-do compile { target { rv64 } } } */ |
| 2 |
/* { dg-options "-march=rv64gc_xtheadvector -mabi=lp64d -O3" } */ |
| 3 |
|
| 4 |
#include "riscv_vector.h" |
| 5 |
|
| 6 |
struct a |
| 7 |
{ |
| 8 |
int b[]; |
| 9 |
} c (vint32m4_t), d; |
| 10 |
|
| 11 |
char e; |
| 12 |
char *f; |
| 13 |
|
| 14 |
void g () |
| 15 |
{ |
| 16 |
int h; |
| 17 |
vint32m4_t i; |
| 18 |
vint8m1_t j = __riscv_vlse8_v_i8m1 (&e, d.b[3], h); |
| 19 |
vint16m2_t k = __riscv_vwadd_vx_i16m2 (j, 0, h); |
| 20 |
i = __riscv_vwmacc_vx_i32m4 (i, f[0], k, h); |
| 21 |
c (i); |
| 22 |
} |
| 23 |
|
| 24 |
/* { dg-final { scan-assembler-not {th\.vsext\.vf2} } } */ |