1 /* { dg-do compile } */
2 /* { dg-options "-O" } */
3
4 #include <arm_neon.h>
5
6 void f1(int32x2_t *res, int32_t *x, int c0, int c1) {
7 res[0] = (int32x2_t) { c0 ? x[0] : 0, c1 ? x[2] : 0 };
8 }
9
10 /* { dg-final { scan-assembler-times {\tldr\tw[0-9]+} 2 } } */
11 /* { dg-final { scan-assembler {\tstp\tw[0-9]+, w[0-9]+} } } */
12 /* { dg-final { scan-assembler-not {\tldr\ts} } } */