1 ; RUN: llc -mtriple=armv7-linux < %s -o - | FileCheck -check-prefix=LINUX %s
2 ; RUN: llc -mtriple=thumbv7-windows-msvc -mattr=+thumb-mode < %s -o - | FileCheck -check-prefix=WINDOWS %s
4 define double @testExp(double %val, i32 %a) {
6 ; WINDOWS: b.w ldexp{{$}}
8 %call = tail call fast double @ldexp(double %val, i32 %a)
12 declare double @ldexp(double, i32) memory(none)
14 define double @testExpIntrinsic(double %val, i32 %a) {
16 ; WINDOWS: b.w ldexp{{$}}
18 %call = tail call fast double @llvm.ldexp.f64(double %val, i32 %a)
22 define float @testExpf(float %val, i32 %a) {
26 %call = tail call fast float @ldexpf(float %val, i32 %a)
30 define float @testExpfIntrinsic(float %val, i32 %a) {
32 ; WINDOWS: bl ldexp{{$}}
34 %call = tail call fast float @llvm.ldexp.f32(float %val, i32 %a)
38 declare float @ldexpf(float, i32) memory(none)
40 define fp128 @testExpl(fp128 %val, i32 %a) {
44 %call = tail call fast fp128 @ldexpl(fp128 %val, i32 %a)
48 declare fp128 @ldexpl(fp128, i32) memory(none)
50 define half @testExpf16(half %val, i32 %a) {
52 ; WINDOWS: bl ldexp{{$}}
54 %0 = tail call fast half @llvm.ldexp.f16.i32(half %val, i32 %a)
58 declare half @llvm.ldexp.f16.i32(half, i32) memory(none)