1 ; RUN: llc < %s -mtriple=aarch64 -mattr=+neon | FileCheck %s
3 ; CHECK-LABEL: testmsws:
6 define i32 @testmsws(float %x) {
8 %0 = tail call i64 @llvm.llround.f32(float %x)
9 %conv = trunc i64 %0 to i32
13 ; CHECK-LABEL: testmsxs:
14 ; CHECK: fcvtas x0, s0
16 define i64 @testmsxs(float %x) {
18 %0 = tail call i64 @llvm.llround.f32(float %x)
22 ; CHECK-LABEL: testmswd:
23 ; CHECK: fcvtas x0, d0
25 define i32 @testmswd(double %x) {
27 %0 = tail call i64 @llvm.llround.f64(double %x)
28 %conv = trunc i64 %0 to i32
32 ; CHECK-LABEL: testmsxd:
33 ; CHECK: fcvtas x0, d0
35 define i64 @testmsxd(double %x) {
37 %0 = tail call i64 @llvm.llround.f64(double %x)
41 ; CHECK-LABEL: testmswl:
43 define i32 @testmswl(fp128 %x) {
45 %0 = tail call i64 @llvm.llround.f128(fp128 %x)
46 %conv = trunc i64 %0 to i32
50 ; CHECK-LABEL: testmsll:
52 define i64 @testmsll(fp128 %x) {
54 %0 = tail call i64 @llvm.llround.f128(fp128 %x)
58 declare i64 @llvm.llround.f32(float) nounwind readnone
59 declare i64 @llvm.llround.f64(double) nounwind readnone
60 declare i64 @llvm.llround.f128(fp128) nounwind readnone