1 ; RUN: llc < %s -mtriple=thumbv7s-apple-ios7.0 | FileCheck %s
3 define 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]
8 store half %val, half* %out
12 define 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
20 define 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