|
16 | 16 |
|
17 | 17 | #define def_fma_vec_f16_intrinsic() \ |
18 | 18 | fmt_intrinsic( \ |
19 | | - "define internal fastcc <$w x half> @fma.v$wf16(<$w x half> %a, <$w x half> %b, <$w x half> %c) #0 ${\n" \ |
| 19 | + "define internal <$w x half> @fma.v$wf16(<$w x half> %a, <$w x half> %b, <$w x half> %c) #0 ${\n" \ |
20 | 20 | " %a_f32 = fpext <$w x half> %a to <$w x float>\n" \ |
21 | 21 | " %b_f32 = fpext <$w x half> %b to <$w x float>\n" \ |
22 | 22 | " %c_f32 = fpext <$w x half> %c to <$w x float>\n" \ |
23 | 23 | " %out_f32 = call fast <$w x float> @llvm.fma.v$wf32(<$w x float> %a_f32, <$w x float> %b_f32, <$w x float> %c_f32)\n" \ |
24 | 24 | " %out = fptrunc <$w x float> %out_f32 to <$w x half>\n" \ |
25 | 25 | " ret <$w x half> %out\n" \ |
26 | 26 | "$}" \ |
27 | | - ); |
| 27 | + ) |
28 | 28 |
|
29 | 29 | #define def_minnum_vec_f16_intrinsic() \ |
30 | 30 | fmt_intrinsic( \ |
31 | | - "define internal fastcc <$w x half> @minnum.v$wf16(<$w x half> %a, <$w x half> %b) #0 ${\n" \ |
| 31 | + "define internal <$w x half> @minnum.v$wf16(<$w x half> %a, <$w x half> %b) local_unnamed_addr #0 ${\n" \ |
32 | 32 | " %a_f32 = fpext <$w x half> %a to <$w x float>\n" \ |
33 | 33 | " %b_f32 = fpext <$w x half> %b to <$w x float>\n" \ |
34 | 34 | " %out_f32 = call fast <$w x float> @llvm.minnum.v$wf32(<$w x float> %a_f32, <$w x float> %b_f32)\n" \ |
35 | 35 | " %out = fptrunc <$w x float> %out_f32 to <$w x half>\n" \ |
36 | 36 | " ret <$w x half> %out\n" \ |
37 | 37 | "$}" \ |
38 | | - ); |
| 38 | + ) |
39 | 39 |
|
40 | 40 | #define def_maxnum_vec_f16_intrinsic() \ |
41 | 41 | fmt_intrinsic( \ |
42 | | - "define internal fastcc <$w x half> @maxnum.v$wf16(<$w x half> %a, <$w x half> %b) #0 ${\n" \ |
| 42 | + "define internal <$w x half> @maxnum.v$wf16(<$w x half> %a, <$w x half> %b) local_unnamed_addr #0 ${\n" \ |
43 | 43 | " %a_f32 = fpext <$w x half> %a to <$w x float>\n" \ |
44 | 44 | " %b_f32 = fpext <$w x half> %b to <$w x float>\n" \ |
45 | 45 | " %out_f32 = call fast <$w x float> @llvm.maxnum.v$wf32(<$w x float> %a_f32, <$w x float> %b_f32)\n" \ |
46 | 46 | " %out = fptrunc <$w x float> %out_f32 to <$w x half>\n" \ |
47 | 47 | " ret <$w x half> %out\n" \ |
48 | 48 | "$}" \ |
49 | | - ); |
| 49 | + ) |
50 | 50 |
|
51 | 51 | #endif |
0 commit comments