1; RUN: llc < %s -mtriple=aarch64-windows -mattr=+fullfp16 | FileCheck %s 2 3; CHECK-LABEL: testmhhs: 4; CHECK: fcvtas w0, h0 5; CHECK: ret 6define i16 @testmhhs(half %x) { 7entry: 8 %0 = tail call i32 @llvm.lround.i32.f16(half %x) 9 %conv = trunc i32 %0 to i16 10 ret i16 %conv 11} 12 13; CHECK-LABEL: testmhws: 14; CHECK: fcvtas w0, h0 15; CHECK: ret 16define i32 @testmhws(half %x) { 17entry: 18 %0 = tail call i32 @llvm.lround.i32.f16(half %x) 19 ret i32 %0 20} 21 22; CHECK-LABEL: testmhxs: 23; CHECK: fcvtas w8, h0 24; CHECK-NEXT: sxtw x0, w8 25; CHECK-NEXT: ret 26define i64 @testmhxs(half %x) { 27entry: 28 %0 = tail call i32 @llvm.lround.i32.f16(half %x) 29 %conv = sext i32 %0 to i64 30 ret i64 %conv 31} 32 33declare i32 @llvm.lround.i32.f16(half) nounwind readnone 34