| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-march=rv64gc_zvknha_zve64x -mabi=lp64d -O2" } */ |
| 3 |
|
| 4 |
#include "riscv_vector.h" |
| 5 |
|
| 6 |
vuint32mf2_t test_vsha2cl_vv_u32mf2(vuint32mf2_t vd, vuint32mf2_t vs2, vuint32mf2_t vs1, size_t vl) { |
| 7 |
return __riscv_vsha2cl_vv_u32mf2(vd, vs2, vs1, vl); |
| 8 |
} |
| 9 |
|
| 10 |
vuint32m1_t test_vsha2cl_vv_u32m1_tu(vuint32m1_t vd, vuint32m1_t vs2, vuint32m1_t vs1, size_t vl) { |
| 11 |
return __riscv_vsha2cl_vv_u32m1_tu(vd, vs2, vs1, vl); |
| 12 |
} |
| 13 |
|
| 14 |
vuint32m2_t test_vsha2ch_vv_u32m2(vuint32m2_t vd, vuint32m2_t vs2, vuint32m2_t vs1, size_t vl) { |
| 15 |
return __riscv_vsha2ch_vv_u32m2(vd, vs2, vs1, vl); |
| 16 |
} |
| 17 |
|
| 18 |
vuint32m4_t test_vsha2ch_vv_u32m4_tu(vuint32m4_t vd, vuint32m4_t vs2, vuint32m4_t vs1, size_t vl) { |
| 19 |
return __riscv_vsha2ch_vv_u32m4_tu(vd, vs2, vs1, vl); |
| 20 |
} |
| 21 |
|
| 22 |
vuint32m4_t test_vsha2ms_vv_u32m4(vuint32m4_t vd, vuint32m4_t vs2, vuint32m4_t vs1, size_t vl) { |
| 23 |
return __riscv_vsha2ms_vv_u32m4(vd, vs2, vs1, vl); |
| 24 |
} |
| 25 |
|
| 26 |
vuint32m8_t test_vsha2ms_vv_u32m8_tu(vuint32m8_t vd, vuint32m8_t vs2, vuint32m8_t vs1, size_t vl) { |
| 27 |
return __riscv_vsha2ms_vv_u32m8_tu(vd, vs2, vs1, vl); |
| 28 |
} |
| 29 |
/* { dg-final { scan-assembler-times {vsetvli\s*zero,\s*[a-x0-9]+,\s*[a-x0-9]+,m[a-x0-9]+,\s*ta,\s*ma} 3 } } */ |
| 30 |
/* { dg-final { scan-assembler-times {vsetvli\s*zero,\s*[a-x0-9]+,\s*[a-x0-9]+,m[a-x0-9]+,\s*tu,\s*ma} 3 } } */ |
| 31 |
/* { dg-final { scan-assembler-times {vsha2cl\.vv\s+v[0-9]+,\s*v[0-9]} 2 } } */ |
| 32 |
/* { dg-final { scan-assembler-times {vsha2ch\.vv\s+v[0-9]+,\s*v[0-9]} 2 } } */ |
| 33 |
/* { dg-final { scan-assembler-times {vsha2ms\.vv\s+v[0-9]+,\s*v[0-9]} 2 } } */ |