1 ; RUN: llc < %s -mtriple=aarch64-windows -mattr=+fullfp16 | FileCheck %s
3 ; CHECK-LABEL: testmhhs:
6 define i16 @testmhhs(half %x) {
8 %0 = tail call i32 @llvm.lround.i32.f16(half %x)
9 %conv = trunc i32 %0 to i16
13 ; CHECK-LABEL: testmhws:
14 ; CHECK: fcvtas w0, h0
16 define i32 @testmhws(half %x) {
18 %0 = tail call i32 @llvm.lround.i32.f16(half %x)
22 ; CHECK-LABEL: testmhxs:
23 ; CHECK: fcvtas w8, h0
24 ; CHECK-NEXT: sxtw x0, w8
26 define i64 @testmhxs(half %x) {
28 %0 = tail call i32 @llvm.lround.i32.f16(half %x)
29 %conv = sext i32 %0 to i64
33 declare i32 @llvm.lround.i32.f16(half) nounwind readnone