1 ; RUN: llc < %s -mtriple=arm64-apple-ios7.0 | FileCheck %s
3 define void @test_load_store(half* %in, half* %out) {
4 ; CHECK-LABEL: test_load_store:
5 ; CHECK: ldr [[TMP:h[0-9]+]], [x0]
6 ; CHECK: str [[TMP]], [x1]
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 w0, [x0]
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 w1, [x0]
23 %val_fp = bitcast i16 %in to half
24 store half %val_fp, half* %addr