1 /* { dg-do compile }  */
2 /* { dg-require-effective-target arm_fp16_ok } */
3 /* { dg-options "-mfloat-abi=softfp -O2" }  */
4 /* { dg-add-options arm_fp16_ieee } */
5 /* { dg-skip-if "incompatible float-abi" { arm*-*-* } { "-mfloat-abi=hard" } } */
6 
7 /* Test __fp16 arguments and return value in registers (softfp).  */
8 
9 void
10 swap (__fp16, __fp16);
11 
12 __fp16
F(__fp16 a,__fp16 b,__fp16 c)13 F (__fp16 a, __fp16 b, __fp16 c)
14 {
15   swap (b, a);
16   return c;
17 }
18 
19 /* { dg-final { scan-assembler-times {mov\tr[0-9]+, r[0-2]} 3 } }  */
20 /* { dg-final { scan-assembler-times {mov\tr1, r0} 1 } }  */
21 /* { dg-final { scan-assembler-times {mov\tr0, r[0-9]+} 2 } }  */
22