Lines Matching refs:half
3 define void @test_load_store(half* %in, half* %out) {
7 %val = load half, half* %in
8 store half %val, half* %out
12 define i16 @test_bitcast_from_half(half* %addr) {
15 %val = load half, half* %addr
16 %val_int = bitcast half %val to i16
20 define i16 @test_reg_bitcast_from_half(half %in) {
26 %val = bitcast half %in to i16
30 define void @test_bitcast_to_half(half* %addr, i16 %in) {
33 %val_fp = bitcast i16 %in to half
34 store half %val_fp, half* %addr
38 define half @test_reg_bitcast_to_half(i16 %in) {
45 %val = bitcast i16 %in to half
46 ret half %val
49 define float @test_extend32(half* %addr) {
53 %val16 = load half, half* %addr
54 %val32 = fpext half %val16 to float
58 define double @test_extend64(half* %addr) {
62 %val16 = load half, half* %addr
63 %val32 = fpext half %val16 to double
67 define void @test_trunc32(float %in, half* %addr) {
71 %val16 = fptrunc float %in to half
72 store half %val16, half* %addr
76 define void @test_trunc64(double %in, half* %addr) {
80 %val16 = fptrunc double %in to half
81 store half %val16, half* %addr