1; RUN: llc < %s -mtriple=thumbv7s-apple-ios7.0 | FileCheck %s 2 3define void @test_load_store(half* %in, half* %out) { 4; CHECK-LABEL: test_load_store: 5; CHECK: ldrh [[TMP:r[0-9]+]], [r0] 6; CHECK: strh [[TMP]], [r1] 7 %val = load half* %in 8 store half %val, half* %out 9 ret void 10} 11 12define i16 @test_bitcast_from_half(half* %addr) { 13; CHECK-LABEL: test_bitcast_from_half: 14; CHECK: ldrh r0, [r0] 15 %val = load half* %addr 16 %val_int = bitcast half %val to i16 17 ret i16 %val_int 18} 19 20define void @test_bitcast_to_half(half* %addr, i16 %in) { 21; CHECK-LABEL: test_bitcast_to_half: 22; CHECK: strh r1, [r0] 23 %val_fp = bitcast i16 %in to half 24 store half %val_fp, half* %addr 25 ret void 26} 27