Lines Matching refs:half
5 define void @test_load_store(half* %in, half* %out) {
9 %val = load half, half* %in
10 store half %val, half* %out
14 define i16 @test_bitcast_from_half(half* %addr) {
17 %val = load half, half* %addr
18 %val_int = bitcast half %val to i16
22 define void @test_bitcast_to_half(half* %addr, i16 %in) {
25 %val_fp = bitcast i16 %in to half
26 store half %val_fp, half* %addr
30 define float @test_extend32(half* %addr) {
36 %val16 = load half, half* %addr
37 %val32 = fpext half %val16 to float
41 define double @test_extend64(half* %addr) {
49 %val16 = load half, half* %addr
50 %val32 = fpext half %val16 to double
54 define void @test_trunc32(float %in, half* %addr) {
60 %val16 = fptrunc float %in to half
61 store half %val16, half* %addr
65 define void @test_trunc64(double %in, half* %addr) {
71 %val16 = fptrunc double %in to half
72 store half %val16, half* %addr