testcase: Add testcase for PR 117330 [PR117330]
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / vec-init-15.c
blob82f0a8f55ee746e3bca16eb668a4b2c772c595ea
1 /* { dg-do compile } */
2 /* { dg-options "-O" } */
4 #include <arm_neon.h>
6 int32x2_t f1(int32_t *x, int c) {
7 return c ? (int32x2_t) { x[0], x[2] } : (int32x2_t) { 0, 0 };
10 int32x2_t f2(int32_t *x, int i0, int i1, int c) {
11 return c ? (int32x2_t) { x[i0], x[i1] } : (int32x2_t) { 0, 0 };
14 /* { dg-final { scan-assembler-times {\t(?:ldr\ts[0-9]+|ld1\t)} 4 } } */
15 /* { dg-final { scan-assembler-not {\tldr\tw} } } */