[AArch64] Add HF vector modes to lane-to-lane INS pattern
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / hfmode_ins_1.c
blob7fafe92f49042b64d24ad4d5219251645da3abfd
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 /* Check that we can perform this in a single INS without doing any DUPs. */
6 #include <arm_neon.h>
8 float16x8_t
9 foo (float16x8_t a, float16x8_t b)
11 return vsetq_lane_f16 (vgetq_lane_f16 (b, 2), a, 3);
14 float16x4_t
15 bar (float16x4_t a, float16x4_t b)
17 return vset_lane_f16 (vget_lane_f16 (b, 2), a, 3);
20 /* { dg-final { scan-assembler-times "ins\\t" 2 } } */
21 /* { dg-final { scan-assembler-not "dup\\t" } } */