1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple aarch64-unknown-unknown -verify-machineinstrs -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=NO-FP16
3 # RUN: llc -mtriple aarch64-unknown-unknown -verify-machineinstrs -mattr=+fullfp16 -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=FP16
7 tracksRegLiveness: true
10 ; NO-FP16-LABEL: name: fp16
11 ; NO-FP16: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float 0.000000e+00
12 ; NO-FP16: %cst:_(s16) = G_FPTRUNC [[C]](s32)
13 ; NO-FP16: $h0 = COPY %cst(s16)
14 ; NO-FP16: RET_ReallyLR implicit $h0
15 ; FP16-LABEL: name: fp16
16 ; FP16: %cst:_(s16) = G_FCONSTANT half 0xH0000
17 ; FP16: $h0 = COPY %cst(s16)
18 ; FP16: RET_ReallyLR implicit $h0
19 %cst:_(s16) = G_FCONSTANT half 0.0
21 RET_ReallyLR implicit $h0