1*73643b50SAdhemerval Zanella; RUN: llc < %s -mtriple=arm-eabi -float-abi=soft | FileCheck %s --check-prefix=SOFTFP 2*73643b50SAdhemerval Zanella; RUN: llc < %s -mtriple=arm-eabi -float-abi=hard | FileCheck %s --check-prefix=HARDFP 3*73643b50SAdhemerval Zanella 4*73643b50SAdhemerval Zanella; SOFTFP-LABEL: testmsxs_builtin: 5*73643b50SAdhemerval Zanella; SOFTFP: bl llroundf 6*73643b50SAdhemerval Zanella; HARDFP-LABEL: testmsxs_builtin: 7*73643b50SAdhemerval Zanella; HARDFP: bl llroundf 8*73643b50SAdhemerval Zanelladefine i64 @testmsxs_builtin(float %x) { 9*73643b50SAdhemerval Zanellaentry: 10*73643b50SAdhemerval Zanella %0 = tail call i64 @llvm.llround.f32(float %x) 11*73643b50SAdhemerval Zanella ret i64 %0 12*73643b50SAdhemerval Zanella} 13*73643b50SAdhemerval Zanella 14*73643b50SAdhemerval Zanella; SOFTFP-LABEL: testmsxd_builtin: 15*73643b50SAdhemerval Zanella; SOFTFP: bl llround 16*73643b50SAdhemerval Zanella; HARDFP-LABEL: testmsxd_builtin: 17*73643b50SAdhemerval Zanella; HARDFP: bl llround 18*73643b50SAdhemerval Zanelladefine i64 @testmsxd_builtin(double %x) { 19*73643b50SAdhemerval Zanellaentry: 20*73643b50SAdhemerval Zanella %0 = tail call i64 @llvm.llround.f64(double %x) 21*73643b50SAdhemerval Zanella ret i64 %0 22*73643b50SAdhemerval Zanella} 23*73643b50SAdhemerval Zanella 24*73643b50SAdhemerval Zanelladeclare i64 @llvm.llround.f32(float) nounwind readnone 25*73643b50SAdhemerval Zanelladeclare i64 @llvm.llround.f64(double) nounwind readnone 26