[Patch AArch64] Improve SIMD concatenation with zeroes
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / vect_combine_zeroes_1.c
blob6257fa978dec0cce3ab1921578281d20ada8e181
1 /* { dg-options "-O2 --save-temps" } */
3 #include "arm_neon.h"
5 int32x4_t
6 foo (int32x2_t *x)
8 int32x2_t i = *x;
9 int32x2_t zeroes = vcreate_s32 (0l);
10 int32x4_t ret = vcombine_s32 (i, zeroes);
11 return ret;
14 int32x4_t
15 bar (int64_t x)
17 int32x2_t i = vcreate_s32 (x);
18 int32x2_t zeroes = vcreate_s32 (0l);
19 int32x4_t ret = vcombine_s32 (i, zeroes);
20 return ret;
23 /* { dg-final { scan-assembler-not "mov\tv\[0-9\]+.8b, v\[0-9\]+.8b" } } */