1 ; RUN: llc < %s -mtriple=mips64el -mattr=+soft-float | FileCheck %s
3 define signext i32 @testmsws(float %x) {
4 ; CHECK-LABEL: testmsws:
7 %0 = tail call i64 @llvm.llround.f32(float %x)
8 %conv = trunc i64 %0 to i32
12 define i64 @testmsxs(float %x) {
13 ; CHECK-LABEL: testmsxs:
16 %0 = tail call i64 @llvm.llround.f32(float %x)
20 define signext i32 @testmswd(double %x) {
21 ; CHECK-LABEL: testmswd:
24 %0 = tail call i64 @llvm.llround.f64(double %x)
25 %conv = trunc i64 %0 to i32
29 define i64 @testmsxd(double %x) {
30 ; CHECK-LABEL: testmsxd:
33 %0 = tail call i64 @llvm.llround.f64(double %x)
37 define signext i32 @testmswl(fp128 %x) {
38 ; CHECK-LABEL: testmswl:
41 %0 = tail call i64 @llvm.llround.f128(fp128 %x)
42 %conv = trunc i64 %0 to i32
46 define i64 @testmsll(fp128 %x) {
47 ; CHECK-LABEL: testmsll:
50 %0 = tail call i64 @llvm.llround.f128(fp128 %x)
54 declare i64 @llvm.llround.f32(float) nounwind readnone
55 declare i64 @llvm.llround.f64(double) nounwind readnone
56 declare i64 @llvm.llround.f128(fp128) nounwind readnone