1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_fp16_ok } */
3 /* { dg-options "-mfloat-abi=softfp -O2 -mno-long-calls" } */
4 /* { dg-add-options arm_fp16_ieee } */
5 /* { dg-skip-if "incompatible float-abi" { arm*-*-* } { "-mfloat-abi=hard" } } */
7 /* Test __fp16 arguments and return value in registers (softfp). */
10 swap (__fp16
, __fp16
);
13 F (__fp16 a
, __fp16 b
, __fp16 c
)
19 /* The swap must include two moves out of r0/r1 and two moves in. */
20 /* { dg-final { scan-assembler-times {mov\tr[0-9]+, r[01]} 2 } } */
21 /* { dg-final { scan-assembler-times {mov\tr[01], r[0-9]+} 2 } } */
22 /* c should be spilled around the call. */
23 /* { dg-final { scan-assembler {str\tr2, ([^\n]*).*ldrh\tr0, \1} { target arm_little_endian } } } */