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