1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 /* Test that conversion from 32-bit and 64-bit integers can be done
5 without a call to the support library. */
6
7 #pragma GCC target ("arch=armv8.2-a+nofp16")
8
9 __fp16
10 foo (int x)
11 {
12 return x;
13 }
14
15 __fp16
16 bar (unsigned int x)
17 {
18 return x;
19 }
20
21 __fp16
22 fool (long long x)
23 {
24 return x;
25 }
26
27 __fp16
28 barl (unsigned long long x)
29 {
30 return x;
31 }
32
33
34 /* { dg-final { scan-assembler-not "__float\\\[ds\\\]ihf2" } } */
35 /* { dg-final { scan-assembler-not "__floatun\\\[ds\\\]ihf2" } } */