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