Lines Matching refs:half
3 define void @test_load_store(half addrspace(1)* %in, half addrspace(1)* %out) {
7 %val = load half, half addrspace(1)* %in
8 store half %val, half addrspace(1) * %out
12 define void @test_bitcast_from_half(half addrspace(1)* %in, i16 addrspace(1)* %out) {
16 %val = load half, half addrspace(1) * %in
17 %val_int = bitcast half %val to i16
22 define void @test_bitcast_to_half(half addrspace(1)* %out, i16 addrspace(1)* %in) {
27 %val_fp = bitcast i16 %val to half
28 store half %val_fp, half addrspace(1)* %out
32 define void @test_extend32(half addrspace(1)* %in, float addrspace(1)* %out) {
36 %val16 = load half, half addrspace(1)* %in
37 %val32 = fpext half %val16 to float
42 define void @test_extend64(half addrspace(1)* %in, double addrspace(1)* %out) {
46 %val16 = load half, half addrspace(1)* %in
47 %val64 = fpext half %val16 to double
52 define void @test_trunc32(float addrspace(1)* %in, half addrspace(1)* %out) {
57 %val16 = fptrunc float %val32 to half
58 store half %val16, half addrspace(1)* %out
62 define void @test_trunc64(double addrspace(1)* %in, half addrspace(1)* %out) {
67 %val16 = fptrunc double %val32 to half
68 store half %val16, half addrspace(1)* %out