| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-march=rv64gcv_zvfh -mabi=lp64 -O3" } */ |
| 3 |
|
| 4 |
#include "riscv_vector.h" |
| 5 |
|
| 6 |
vfloat16mf4x2_t |
| 7 |
test_vundefined_f16mf4x2 () |
| 8 |
{ |
| 9 |
return __riscv_vundefined_f16mf4x2 (); |
| 10 |
} |
| 11 |
|
| 12 |
vfloat32m1x3_t |
| 13 |
test_vundefined_f32m1x3 () |
| 14 |
{ |
| 15 |
return __riscv_vundefined_f32m1x3 (); |
| 16 |
} |
| 17 |
|
| 18 |
vfloat64m1x5_t |
| 19 |
test_vundefined_f64m1x5 () |
| 20 |
{ |
| 21 |
return __riscv_vundefined_f64m1x5 (); |
| 22 |
} |
| 23 |
|
| 24 |
vint8mf4x2_t |
| 25 |
test_vundefined_i8mf4x2 () |
| 26 |
{ |
| 27 |
return __riscv_vundefined_i8mf4x2 (); |
| 28 |
} |
| 29 |
|
| 30 |
vint16mf4x8_t |
| 31 |
test_vundefined_i16mf4x8 () |
| 32 |
{ |
| 33 |
return __riscv_vundefined_i16mf4x8 (); |
| 34 |
} |
| 35 |
|
| 36 |
vint32m1x7_t |
| 37 |
test_vundefined_i32m1x7 () |
| 38 |
{ |
| 39 |
return __riscv_vundefined_i32m1x7 (); |
| 40 |
} |
| 41 |
|
| 42 |
vint64m1x4_t |
| 43 |
test_vundefined_i64m1x4 () |
| 44 |
{ |
| 45 |
return __riscv_vundefined_i64m1x4 (); |
| 46 |
} |
| 47 |
|
| 48 |
vuint8mf8x2_t |
| 49 |
test_vundefined_u8mf8x2 () |
| 50 |
{ |
| 51 |
return __riscv_vundefined_u8mf8x2 (); |
| 52 |
} |
| 53 |
|
| 54 |
vuint16mf4x4_t |
| 55 |
test_vundefined_u16mf4x4 () |
| 56 |
{ |
| 57 |
return __riscv_vundefined_u16mf4x4 (); |
| 58 |
} |
| 59 |
|
| 60 |
vuint32m1x7_t |
| 61 |
test_vundefined_u32m1x7 () |
| 62 |
{ |
| 63 |
return __riscv_vundefined_u32m1x7 (); |
| 64 |
} |
| 65 |
|
| 66 |
vuint64m4x2_t |
| 67 |
test_vundefined_u64m4x2 () |
| 68 |
{ |
| 69 |
return __riscv_vundefined_u64m4x2 (); |
| 70 |
} |
| 71 |
|
| 72 |
/* { dg-final { scan-assembler-times {vse[0-9]+\.v\s+v[0-9]+,\s*0\([0-9ax]+\)} 0 } } */ |
| 73 |
/* { dg-final { scan-assembler-times {vs[0-9]+r\.v\s+v[0-9]+,\s*0\([a-x][0-9]+\)} 0 } } */ |