gcc/testsuite/gcc.target/aarch64/stp_vec_128_1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Ofast -moverride=tune=none" } */ |
| 3 | |
| 4 | |
| 5 | typedef int int32x4_t __attribute__ ((__vector_size__ ((16)))); |
| 6 | |
| 7 | void |
| 8 | bar (int32x4_t *foo) |
| 9 | { |
| 10 | int i = 0; |
| 11 | int32x4_t val = { 3, 2, 5, 1 }; |
| 12 | |
| 13 | for (i = 0; i < 256; i+=2) |
| 14 | { |
| 15 | foo[i] = val; |
| 16 | foo[i+1] = val; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | /* { dg-final { scan-assembler "stp\tq\[0-9\]+, q\[0-9\]" } } */ |