| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target elf } */ |
| 3 |
/* { dg-options "-O2 -march=armv9.2-a+sve+sme -funwind-tables" } */ |
| 4 |
|
| 5 |
#include "../pfalse-unary_0.h" |
| 6 |
|
| 7 |
ALL_SIGNED (qabs, MXZ) |
| 8 |
ALL_SIGNED (qneg, MXZ) |
| 9 |
S_UNSIGNED (recpe, MXZ) |
| 10 |
S_UNSIGNED (rsqrte, MXZ) |
| 11 |
|
| 12 |
#undef M |
| 13 |
#define M(F, RTY, TY) \ |
| 14 |
__arm_streaming \ |
| 15 |
RTY F##_f (RTY inactive, TY op) \ |
| 16 |
{ \ |
| 17 |
return sv##F (inactive, svpfalse_b (), op); \ |
| 18 |
} |
| 19 |
|
| 20 |
#undef XZI |
| 21 |
#define XZI(F, RTY, TY) \ |
| 22 |
__arm_streaming \ |
| 23 |
RTY F##_f (TY op) \ |
| 24 |
{ \ |
| 25 |
return sv##F (svpfalse_b (), op); \ |
| 26 |
} |
| 27 |
|
| 28 |
ALL_DATA (revd, MXZ) |
| 29 |
|
| 30 |
/* { dg-final { scan-assembler-times {\t.cfi_startproc\n\tret\n} 22 } } */ |
| 31 |
/* { dg-final { scan-assembler-times {\t.cfi_startproc\n\tmovi?\t[vdz]([0-9]+)\.?(?:[0-9]*[bhsd])?, #?0\n\tret\n} 44 } } */ |
| 32 |
/* { dg-final { scan-assembler-times {\t.cfi_startproc\n} 66 } } */ |