[ARM] Fix test armv8_2-fp16-move-1.c
[official-gcc.git] / gcc / testsuite / gcc.target / arm / fp16-aapcs-3.c
blob84fc0a0f5f06b1714a70f4703213ca10ea0b268e
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_hard_vfp_ok } */
3 /* { dg-require-effective-target arm_fp16_alternative_ok } */
4 /* { dg-options "-O2" } */
5 /* { dg-add-options arm_fp16_alternative } */
7 /* Test __fp16 arguments and return value in registers (hard-float). */
9 void
10 swap (__fp16, __fp16);
12 __fp16
13 F (__fp16 a, __fp16 b, __fp16 c)
15 swap (b, a);
16 return c;
19 /* { dg-final { scan-assembler-times {vmov\tr[0-9]+, s[0-2]} 2 } } */
20 /* { dg-final { scan-assembler-times {vmov.f32\ts1, s0} 1 } } */
21 /* { dg-final { scan-assembler-times {vmov\ts0, r[0-9]+} 2 } } */