| 1 |
/* { dg-options "-O -msve-vector-bits=256 -fomit-frame-pointer" } */ |
| 2 |
|
| 3 |
#include <arm_sve.h> |
| 4 |
|
| 5 |
typedef mfloat8_t mfloat8x32_t __attribute__((vector_size (32))); |
| 6 |
typedef bfloat16_t bfloat16x16_t __attribute__((vector_size (32))); |
| 7 |
typedef float16_t float16x16_t __attribute__((vector_size (32))); |
| 8 |
typedef float32_t float32x8_t __attribute__((vector_size (32))); |
| 9 |
typedef float64_t float64x4_t __attribute__((vector_size (32))); |
| 10 |
typedef int8_t int8x32_t __attribute__((vector_size (32))); |
| 11 |
typedef int16_t int16x16_t __attribute__((vector_size (32))); |
| 12 |
typedef int32_t int32x8_t __attribute__((vector_size (32))); |
| 13 |
typedef int64_t int64x4_t __attribute__((vector_size (32))); |
| 14 |
typedef uint8_t uint8x32_t __attribute__((vector_size (32))); |
| 15 |
typedef uint16_t uint16x16_t __attribute__((vector_size (32))); |
| 16 |
typedef uint32_t uint32x8_t __attribute__((vector_size (32))); |
| 17 |
typedef uint64_t uint64x4_t __attribute__((vector_size (32))); |
| 18 |
|
| 19 |
void mfloat8_callee (svmfloat8_t); |
| 20 |
void bfloat16_callee (svbfloat16_t); |
| 21 |
void float16_callee (svfloat16_t); |
| 22 |
void float32_callee (svfloat32_t); |
| 23 |
void float64_callee (svfloat64_t); |
| 24 |
void int8_callee (svint8_t); |
| 25 |
void int16_callee (svint16_t); |
| 26 |
void int32_callee (svint32_t); |
| 27 |
void int64_callee (svint64_t); |
| 28 |
void uint8_callee (svuint8_t); |
| 29 |
void uint16_callee (svuint16_t); |
| 30 |
void uint32_callee (svuint32_t); |
| 31 |
void uint64_callee (svuint64_t); |
| 32 |
|
| 33 |
void |
| 34 |
mfloat8_caller (mfloat8x32_t arg) |
| 35 |
{ |
| 36 |
mfloat8_callee (arg); |
| 37 |
} |
| 38 |
|
| 39 |
void |
| 40 |
bfloat16_caller (bfloat16x16_t arg) |
| 41 |
{ |
| 42 |
bfloat16_callee (arg); |
| 43 |
} |
| 44 |
|
| 45 |
void |
| 46 |
float16_caller (float16x16_t arg) |
| 47 |
{ |
| 48 |
float16_callee (arg); |
| 49 |
} |
| 50 |
|
| 51 |
void |
| 52 |
float32_caller (float32x8_t arg) |
| 53 |
{ |
| 54 |
float32_callee (arg); |
| 55 |
} |
| 56 |
|
| 57 |
void |
| 58 |
float64_caller (float64x4_t arg) |
| 59 |
{ |
| 60 |
float64_callee (arg); |
| 61 |
} |
| 62 |
|
| 63 |
void |
| 64 |
int8_caller (int8x32_t arg) |
| 65 |
{ |
| 66 |
int8_callee (arg); |
| 67 |
} |
| 68 |
|
| 69 |
void |
| 70 |
int16_caller (int16x16_t arg) |
| 71 |
{ |
| 72 |
int16_callee (arg); |
| 73 |
} |
| 74 |
|
| 75 |
void |
| 76 |
int32_caller (int32x8_t arg) |
| 77 |
{ |
| 78 |
int32_callee (arg); |
| 79 |
} |
| 80 |
|
| 81 |
void |
| 82 |
int64_caller (int64x4_t arg) |
| 83 |
{ |
| 84 |
int64_callee (arg); |
| 85 |
} |
| 86 |
|
| 87 |
void |
| 88 |
uint8_caller (uint8x32_t arg) |
| 89 |
{ |
| 90 |
uint8_callee (arg); |
| 91 |
} |
| 92 |
|
| 93 |
void |
| 94 |
uint16_caller (uint16x16_t arg) |
| 95 |
{ |
| 96 |
uint16_callee (arg); |
| 97 |
} |
| 98 |
|
| 99 |
void |
| 100 |
uint32_caller (uint32x8_t arg) |
| 101 |
{ |
| 102 |
uint32_callee (arg); |
| 103 |
} |
| 104 |
|
| 105 |
void |
| 106 |
uint64_caller (uint64x4_t arg) |
| 107 |
{ |
| 108 |
uint64_callee (arg); |
| 109 |
} |
| 110 |
|
| 111 |
/* { dg-final { scan-assembler-times {\tld1b\tz0\.b, p[0-7]/z, \[x0\]} 3 } } */ |
| 112 |
/* { dg-final { scan-assembler-times {\tld1h\tz0\.h, p[0-7]/z, \[x0\]} 4 } } */ |
| 113 |
/* { dg-final { scan-assembler-times {\tld1w\tz0\.s, p[0-7]/z, \[x0\]} 3 } } */ |
| 114 |
/* { dg-final { scan-assembler-times {\tld1d\tz0\.d, p[0-7]/z, \[x0\]} 3 } } */ |
| 115 |
/* { dg-final { scan-assembler-not {\tst1[bhwd]\t} } } */ |