[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git] / llvm / test / CodeGen / ARM / lrint-conv.ll
blob192da565c12fd13d00f74895df7c99f38883cb4b
1 ; RUN: llc < %s -mtriple=arm-eabi -float-abi=soft | FileCheck %s --check-prefix=SOFTFP
2 ; RUN: llc < %s -mtriple=arm-eabi -float-abi=hard | FileCheck %s --check-prefix=HARDFP
4 ; SOFTFP-LABEL: testmsws_builtin:
5 ; SOFTFP:       bl      lrintf
6 ; HARDFP-LABEL: testmsws_builtin:
7 ; HARDFP:       bl      lrintf
8 define i32 @testmsws_builtin(float %x) {
9 entry:
10   %0 = tail call i32 @llvm.lrint.i32.f32(float %x)
11   ret i32 %0
14 ; SOFTFP-LABEL: testmswd_builtin:
15 ; SOFTFP:       bl      lrint
16 ; HARDFP-LABEL: testmswd_builtin:
17 ; HARDFP:       bl      lrint
18 define i32 @testmswd_builtin(double %x) {
19 entry:
20   %0 = tail call i32 @llvm.lrint.i32.f64(double %x)
21   ret i32 %0
24 declare i32 @llvm.lrint.i32.f32(float) nounwind readnone
25 declare i32 @llvm.lrint.i32.f64(double) nounwind readnone