1define void @__clc_vstore_half_float_helper__private(float %data, half addrspace(0)* nocapture %ptr) nounwind alwaysinline {
2  %res = fptrunc float %data to half
3  store half %res, half addrspace(0)* %ptr
4  ret void
5}
6
7define void @__clc_vstore_half_float_helper__global(float %data, half addrspace(1)* nocapture %ptr) nounwind alwaysinline {
8  %res = fptrunc float %data to half
9  store half %res, half addrspace(1)* %ptr
10  ret void
11}
12
13define void @__clc_vstore_half_float_helper__local(float %data, half addrspace(3)* nocapture %ptr) nounwind alwaysinline {
14  %res = fptrunc float %data to half
15  store half %res, half addrspace(3)* %ptr
16  ret void
17}
18
19define void @__clc_vstore_half_double_helper__private(double %data, half addrspace(0)* nocapture %ptr) nounwind alwaysinline {
20  %res = fptrunc double %data to half
21  store half %res, half addrspace(0)* %ptr
22  ret void
23}
24
25define void @__clc_vstore_half_double_helper__global(double %data, half addrspace(1)* nocapture %ptr) nounwind alwaysinline {
26  %res = fptrunc double %data to half
27  store half %res, half addrspace(1)* %ptr
28  ret void
29}
30
31define void @__clc_vstore_half_double_helper__local(double %data, half addrspace(3)* nocapture %ptr) nounwind alwaysinline {
32  %res = fptrunc double %data to half
33  store half %res, half addrspace(3)* %ptr
34  ret void
35}
36