| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3 -fdump-rtl-expand" } */ |
| 3 |
|
| 4 |
#include <arm_neon.h> |
| 5 |
|
| 6 |
uint32x2x4_t |
| 7 |
test_1 (uint32x2x4_t a, uint32x2x4_t b) |
| 8 |
{ |
| 9 |
uint32x2x4_t result; |
| 10 |
|
| 11 |
for (unsigned index = 0; index < 4; ++index) |
| 12 |
result.val[index] = a.val[index] + b.val[index]; |
| 13 |
|
| 14 |
return result; |
| 15 |
} |
| 16 |
|
| 17 |
/* Should not use the stack in expand. */ |
| 18 |
/* { dg-final { scan-rtl-dump-not "virtual-stack-vars" "expand" } } */ |
| 19 |
/* Should not have to modify the stack pointer. */ |
| 20 |
/* { dg-final { scan-assembler-not "\t(add|sub).*sp" } } */ |
| 21 |
/* Should not have to store or load anything. */ |
| 22 |
/* { dg-final { scan-assembler-not "\t(ld|st)\[rp\]" } } */ |