| 1 |
/* { dg-require-effective-target arm_v8_1m_mve_ok } */ |
| 2 |
/* { dg-add-options arm_v8_1m_mve } */ |
| 3 |
/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */ |
| 4 |
|
| 5 |
#include "arm_mve.h" |
| 6 |
|
| 7 |
int8x16_t |
| 8 |
foo8 () |
| 9 |
{ |
| 10 |
int8x16_t b = {1, 2, 3, 4}; |
| 11 |
return b; |
| 12 |
} |
| 13 |
|
| 14 |
int16x8_t |
| 15 |
foo16 (int16x8_t value) |
| 16 |
{ |
| 17 |
int16x8_t b = {1, 2, 3}; |
| 18 |
return b; |
| 19 |
} |
| 20 |
|
| 21 |
int32x4_t |
| 22 |
foo32 (int32x4_t value) |
| 23 |
{ |
| 24 |
int32x4_t b = {1, 2}; |
| 25 |
return b; |
| 26 |
} |
| 27 |
|
| 28 |
int64x2_t |
| 29 |
foo64 (int64x2_t value) |
| 30 |
{ |
| 31 |
int64x2_t b = {1}; |
| 32 |
return b; |
| 33 |
} |