| 1 |
/* { dg-do compile { target aarch64_little_endian } } */ |
| 2 |
/* { dg-options "-O2 -ftree-vectorize -fopenmp-simd -msve-vector-bits=128 -fno-tree-loop-distribute-patterns" } */ |
| 3 |
|
| 4 |
#define N 16 |
| 5 |
|
| 6 |
#include "single_1.c" |
| 7 |
|
| 8 |
/* { dg-final { scan-assembler-times {\tmovi\tv[0-9]+\.16b, 0x1\n} 1 } } */ |
| 9 |
/* { dg-final { scan-assembler-times {\tmovi\tv[0-9]+\.16b, 0x2\n} 1 } } */ |
| 10 |
/* { dg-final { scan-assembler-times {\tmovi\tv[0-9]+\.8h, 0x3\n} 1 } } */ |
| 11 |
/* { dg-final { scan-assembler-times {\tmovi\tv[0-9]+\.8h, 0x4\n} 1 } } */ |
| 12 |
/* { dg-final { scan-assembler-times {\tmovi\tv[0-9]+\.4s, 0x5\n} 1 } } */ |
| 13 |
/* { dg-final { scan-assembler-times {\tmovi\tv[0-9]+\.4s, 0x6\n} 1 } } */ |
| 14 |
/* { dg-final { scan-assembler-times {\tmov\tz[0-9]+\.d, #7\n} 1 } } */ |
| 15 |
/* { dg-final { scan-assembler-times {\tmov\tz[0-9]+\.d, #8\n} 1 } } */ |
| 16 |
/* { dg-final { scan-assembler-times {\tfmov\tv[0-9]+\.8h, 1\.0e\+0\n} 1 } } */ |
| 17 |
/* { dg-final { scan-assembler-times {\tfmov\tv[0-9]+\.4s, 2\.0e\+0\n} 1 } } */ |
| 18 |
/* { dg-final { scan-assembler-times {\tfmov\tv[0-9]+\.2d, 3\.0e\+0\n} 1 } } */ |
| 19 |
|
| 20 |
/* { dg-final { scan-assembler-times {\tstr\tq[0-9]+,} 11 } } */ |
| 21 |
|
| 22 |
/* { dg-final { scan-assembler-not {\twhile} } } */ |
| 23 |
/* { dg-final { scan-assembler-not {\tb} } } */ |
| 24 |
/* { dg-final { scan-assembler-not {\tcmp} } } */ |
| 25 |
/* { dg-final { scan-assembler-not {\tindex} } } */ |
| 26 |
/* { dg-final { scan-assembler-not {\tptrue\t} } } */ |