blob: 84fc0a0f5f06b1714a70f4703213ca10ea0b268e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* { dg-do compile } */
/* { dg-require-effective-target arm_hard_vfp_ok } */
/* { dg-require-effective-target arm_fp16_alternative_ok } */
/* { dg-options "-O2" } */
/* { dg-add-options arm_fp16_alternative } */
/* Test __fp16 arguments and return value in registers (hard-float). */
void
swap (__fp16, __fp16);
__fp16
F (__fp16 a, __fp16 b, __fp16 c)
{
swap (b, a);
return c;
}
/* { dg-final { scan-assembler-times {vmov\tr[0-9]+, s[0-2]} 2 } } */
/* { dg-final { scan-assembler-times {vmov.f32\ts1, s0} 1 } } */
/* { dg-final { scan-assembler-times {vmov\ts0, r[0-9]+} 2 } } */
|