| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3 -march=rv32gc_zve32x_zvl64b -mabi=ilp32d" } */ |
| 3 |
|
| 4 |
#include "riscv_vector.h" |
| 5 |
|
| 6 |
/* To support target attribute, the vfloat*m*x*_t need to be registered |
| 7 |
in advance. We add type and args/return value check during the |
| 8 |
set current function but cannot cover below cases. It is the same |
| 9 |
behavior compared to aarch64 sve. */ |
| 10 |
void foo0 () {vint64m1_t t;} |
| 11 |
void foo1 () {vuint64m1_t t;} |
| 12 |
void foo2 () {vint64m2_t t;} |
| 13 |
void foo3 () {vuint64m2_t t;} |
| 14 |
void foo4 () {vint64m4_t t;} |
| 15 |
void foo5 () {vuint64m4_t t;} |
| 16 |
void foo6 () {vint64m8_t t;} |
| 17 |
void foo7 () {vuint64m8_t t;} |
| 18 |
|
| 19 |
void new_foo0 (vint64m1_t t) { } /* { dg-error {argument type 'vint64m1_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */ |
| 20 |
void new_foo1 (vuint64m1_t t) { } /* { dg-error {argument type 'vuint64m1_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */ |
| 21 |
void new_foo2 (vint64m2_t t) { } /* { dg-error {argument type 'vint64m2_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */ |
| 22 |
void new_foo3 (vuint64m2_t t) { } /* { dg-error {argument type 'vuint64m2_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */ |
| 23 |
void new_foo4 (vint64m4_t t) { } /* { dg-error {argument type 'vint64m4_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */ |
| 24 |
void new_foo5 (vuint64m4_t t) { } /* { dg-error {argument type 'vuint64m4_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */ |
| 25 |
void new_foo6 (vint64m8_t t) { } /* { dg-error {argument type 'vint64m8_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */ |
| 26 |
void new_foo7 (vuint64m8_t t) { } /* { dg-error {argument type 'vuint64m8_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */ |