1 ; RUN: llc -mtriple=thumbv7m-apple-darwin -mcpu=cortex-m3 < %s | FileCheck %s --check-prefix=CHECK-M3
2 ; RUN: llc -mtriple=thumbv7em-apple-darwin -mcpu=cortex-m4 < %s | FileCheck %s --check-prefix=CHECK-M4
3 ; RUN: llc -mtriple=thumbv7-apple-darwin -mcpu=cortex-m3 < %s | FileCheck %s --check-prefix=CHECK-M3
4 ; RUN: llc -mtriple=thumbv7-apple-darwin -mcpu=cortex-m4 < %s | FileCheck %s --check-prefix=CHECK-M4
6 define float @float_op(float %lhs, float %rhs) {
7 %sum = fadd float %lhs, %rhs
9 ; CHECK-M3-LABEL: float_op:
10 ; CHECK-M3: bl ___addsf3
12 ; CHECK-M4-LABEL: float_op:
16 define double @double_op(double %lhs, double %rhs) {
17 %sum = fadd double %lhs, %rhs
19 ; CHECK-M3-LABEL: double_op:
20 ; CHECK-M3: bl ___adddf3
22 ; CHECK-M4-LABEL: double_op:
23 ; CHECK-M4: {{(bl|blx|b.w)}} ___adddf3