gcc/testsuite/gcc.target/aarch64/simd/vect_str_zero.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O1" } */ |
| 3 | |
| 4 | #include <arm_neon.h> |
| 5 | |
| 6 | void |
| 7 | f (uint32x4_t *p) |
| 8 | { |
| 9 | uint32x4_t x = { 0, 0, 0, 0}; |
| 10 | p[4] = x; |
| 11 | |
| 12 | /* { dg-final { scan-assembler "stp\txzr, xzr," } } */ |
| 13 | } |
| 14 | |
| 15 | void |
| 16 | g (float32x2_t *p) |
| 17 | { |
| 18 | float32x2_t x = {0.0, 0.0}; |
| 19 | p[400] = x; |
| 20 | |
| 21 | /* { dg-final { scan-assembler "str\txzr, " } } */ |
| 22 | } |
| 23 | |
| 24 | /* { dg-final { scan-assembler-not "add\tx\[0-9\]\+, x0, \[0-9\]+" } } */ |