1 ; RUN: llc < %s -mtriple=aarch64 -mattr=+fullfp16 | FileCheck %s
3 ; CHECK-LABEL: testmhhs:
5 ; CHECK-NEXT: fcvtzs x0, h0
7 define i16 @testmhhs(half %x) {
9 %0 = tail call i64 @llvm.llrint.i64.f16(half %x)
10 %conv = trunc i64 %0 to i16
14 ; CHECK-LABEL: testmhws:
15 ; CHECK: frintx h0, h0
16 ; CHECK-NEXT: fcvtzs x0, h0
18 define i32 @testmhws(half %x) {
20 %0 = tail call i64 @llvm.llrint.i64.f16(half %x)
21 %conv = trunc i64 %0 to i32
25 ; CHECK-LABEL: testmhxs:
26 ; CHECK: frintx h0, h0
27 ; CHECK-NEXT: fcvtzs x0, h0
29 define i64 @testmhxs(half %x) {
31 %0 = tail call i64 @llvm.llrint.i64.f16(half %x)
35 declare i64 @llvm.llrint.i64.f16(half) nounwind readnone