gcc/testsuite/gcc.target/aarch64/stp_vec_64_1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Ofast" } */ |
| 3 | |
| 4 | |
| 5 | typedef int int32x2_t __attribute__ ((__vector_size__ ((8)))); |
| 6 | |
| 7 | void |
| 8 | bar (int32x2_t *foo) |
| 9 | { |
| 10 | int i = 0; |
| 11 | int32x2_t val = { 3, 2 }; |
| 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\td\[0-9\]+, d\[0-9\]" } } */ |