[ARM] Adjust how NEON shifts are lowered
[llvm-core.git] / test / CodeGen / ARM / lround-conv.ll
blob3aaed74830b870678e149c2fc8e5e22947d86bc3
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      lroundf
6 ; HARDFP-LABEL: testmsws_builtin:
7 ; HARDFP:       bl      lroundf
8 define i32 @testmsws_builtin(float %x) {
9 entry:
10   %0 = tail call i32 @llvm.lround.i32.f32(float %x)
11   ret i32 %0
14 ; SOFTFP-LABEL: testmswd_builtin:
15 ; SOFTFP:       bl      lround
16 ; HARDFP-LABEL: testmswd_builtin:
17 ; HARDFP:       bl      lround
18 define i32 @testmswd_builtin(double %x) {
19 entry:
20   %0 = tail call i32 @llvm.lround.i32.f64(double %x)
21   ret i32 %0
24 declare i32 @llvm.lround.i32.f32(float) nounwind readnone
25 declare i32 @llvm.lround.i32.f64(double) nounwind readnone