ARM: Use non-VFP softcalls on embedded Darwinish targets
[oota-llvm.git] / test / CodeGen / ARM / darwin-eabi.ll
1 ; RUN: llc -mtriple=thumbv7m-apple-darwin-eabi -mcpu=cortex-m3 < %s | FileCheck %s --check-prefix=CHECK-M3
2 ; RUN: llc -mtriple=thumbv7em-apple-darwin-eabi -mcpu=cortex-m4 < %s | FileCheck %s --check-prefix=CHECK-M4
3
4 define float @float_op(float %lhs, float %rhs) {
5   %sum = fadd float %lhs, %rhs
6   ret float %sum
7 ; CHECK-M3-LABEL: float_op:
8 ; CHECK-M3: blx ___addsf3
9
10 ; CHECK-M4-LABEL: float_op:
11 ; CHECK-M4: vadd.f32
12 }
13
14 define double @double_op(double %lhs, double %rhs) {
15   %sum = fadd double %lhs, %rhs
16   ret double %sum
17 ; CHECK-M3-LABEL: double_op:
18 ; CHECK-M3: blx ___adddf3
19
20 ; CHECK-M4-LABEL: double_op:
21 ; CHECK-M4: blx ___adddf3
22 }