| 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 value1; |
| 8 |
int16x8_t value2; |
| 9 |
int32x4_t value3; |
| 10 |
int64x2_t value4; |
| 11 |
|
| 12 |
int8x16_t |
| 13 |
foo8 (void) |
| 14 |
{ |
| 15 |
int8x16_t b = value1; |
| 16 |
return b; |
| 17 |
} |
| 18 |
|
| 19 |
int16x8_t |
| 20 |
foo16 (void) |
| 21 |
{ |
| 22 |
int16x8_t b = value2; |
| 23 |
return b; |
| 24 |
} |
| 25 |
|
| 26 |
int32x4_t |
| 27 |
foo32 (void) |
| 28 |
{ |
| 29 |
int32x4_t b = value3; |
| 30 |
return b; |
| 31 |
} |
| 32 |
|
| 33 |
int64x2_t |
| 34 |
foo64 (void) |
| 35 |
{ |
| 36 |
int64x2_t b = value4; |
| 37 |
return b; |
| 38 |
} |
| 39 |
|