| 1 |
/* { dg-do compile { target { arm*-*-* } } } */ |
| 2 |
/* { dg-require-effective-target arm_v8_1m_mve_ok } */ |
| 3 |
/* { dg-options "-O2 -save-temps" } */ |
| 4 |
/* { dg-add-options arm_v8_1m_mve } */ |
| 5 |
|
| 6 |
#include <arm_mve.h> |
| 7 |
#include <stdio.h> |
| 8 |
#include <stdlib.h> |
| 9 |
#include "../lob.h" |
| 10 |
|
| 11 |
void __attribute__ ((noinline)) test (int64_t *a, int64_t *c, int n) |
| 12 |
{ |
| 13 |
while (n > 0) |
| 14 |
{ |
| 15 |
mve_pred16_t p = vctp64q (n); |
| 16 |
int64x2_t va = vldrdq_gather_offset_z_s64 (a, vcreateq_u64 (0, 8), p); |
| 17 |
vstrdq_scatter_offset_p_s64 (c, vcreateq_u64 (0, 8), va, p); |
| 18 |
c+=2; |
| 19 |
a+=2; |
| 20 |
n-=2; |
| 21 |
} |
| 22 |
} |
| 23 |
|
| 24 |
/* { dg-final { scan-assembler-times {\tdlstp.64} 1 } } */ |
| 25 |
/* { dg-final { scan-assembler-times {\tletp} 1 } } */ |
| 26 |
/* { dg-final { scan-assembler-not "\tvctp" } } */ |
| 27 |
/* { dg-final { scan-assembler-not "\tvpst" } } */ |
| 28 |
/* { dg-final { scan-assembler-not "p0" } } */ |