1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64-unknown-unknown -mattr=+fullfp16 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
8 tracksRegLiveness: true
11 ; CHECK-LABEL: name: positive_zero
12 ; CHECK: [[FMOVH0_:%[0-9]+]]:fpr16 = FMOVH0
13 ; CHECK: $h0 = COPY [[FMOVH0_]]
14 ; CHECK: RET_ReallyLR implicit $h0
15 %0:fpr(s16) = G_FCONSTANT half 0.0
17 RET_ReallyLR implicit $h0
23 tracksRegLiveness: true
26 ; CHECK-LABEL: name: one
27 ; CHECK: [[FMOVHi:%[0-9]+]]:fpr16 = FMOVHi 112
28 ; CHECK: $h0 = COPY [[FMOVHi]]
29 ; CHECK: RET_ReallyLR implicit $h0
30 %0:fpr(s16) = G_FCONSTANT half 1.0
32 RET_ReallyLR implicit $h0
35 name: constant_pool_load
38 tracksRegLiveness: true
41 ; CHECK-LABEL: name: constant_pool_load
42 ; CHECK: [[ADRP:%[0-9]+]]:gpr64common = ADRP target-flags(aarch64-page) %const.0
43 ; CHECK: [[LDRHui:%[0-9]+]]:fpr16 = LDRHui [[ADRP]], target-flags(aarch64-pageoff, aarch64-nc) %const.0 :: (load (s16) from constant-pool)
44 ; CHECK: $h0 = COPY [[LDRHui]]
45 ; CHECK: RET_ReallyLR implicit $h0
46 %0:fpr(s16) = G_FCONSTANT half 0xH000B
48 RET_ReallyLR implicit $h0