| ; RUN: llc < %s -mtriple=aarch64 -mattr=+neon | FileCheck %s |
| define i32 @testmsws(float %x) { |
| %0 = tail call i64 @llvm.lround.i64.f32(float %x) |
| %conv = trunc i64 %0 to i32 |
| define i64 @testmsxs(float %x) { |
| %0 = tail call i64 @llvm.lround.i64.f32(float %x) |
| define i32 @testmswd(double %x) { |
| %0 = tail call i64 @llvm.lround.i64.f64(double %x) |
| %conv = trunc i64 %0 to i32 |
| define i64 @testmsxd(double %x) { |
| %0 = tail call i64 @llvm.lround.i64.f64(double %x) |
| define i32 @testmswl(fp128 %x) { |
| %0 = tail call i64 @llvm.lround.i64.f128(fp128 %x) |
| %conv = trunc i64 %0 to i32 |
| define i64 @testmsll(fp128 %x) { |
| %0 = tail call i64 @llvm.lround.i64.f128(fp128 %x) |
| declare i64 @llvm.lround.i64.f32(float) nounwind readnone |
| declare i64 @llvm.lround.i64.f64(double) nounwind readnone |
| declare i64 @llvm.lround.i64.f128(fp128) nounwind readnone |