Lines Matching refs:half
4 define void @test_load_store(half addrspace(1)* %in, half addrspace(1)* %out) {
8 %val = load half, half addrspace(1)* %in
9 store half %val, half addrspace(1) * %out
13 define void @test_bitcast_from_half(half addrspace(1)* %in, i16 addrspace(1)* %out) {
17 %val = load half, half addrspace(1) * %in
18 %val_int = bitcast half %val to i16
23 define void @test_bitcast_to_half(half addrspace(1)* %out, i16 addrspace(1)* %in) {
28 %val_fp = bitcast i16 %val to half
29 store half %val_fp, half addrspace(1)* %out
33 define void @test_extend32(half addrspace(1)* %in, float addrspace(1)* %out) {
37 %val16 = load half, half addrspace(1)* %in
38 %val32 = fpext half %val16 to float
43 define void @test_extend64(half addrspace(1)* %in, double addrspace(1)* %out) {
48 %val16 = load half, half addrspace(1)* %in
49 %val64 = fpext half %val16 to double
54 define void @test_trunc32(float addrspace(1)* %in, half addrspace(1)* %out) {
59 %val16 = fptrunc float %val32 to half
60 store half %val16, half addrspace(1)* %out