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
5
6define float @float_op(float %lhs, float %rhs) {
7  %sum = fadd float %lhs, %rhs
8  ret float %sum
9; CHECK-M3-LABEL: float_op:
10; CHECK-M3: blx ___addsf3
11
12; CHECK-M4-LABEL: float_op:
13; CHECK-M4: vadd.f32
14}
15
16define double @double_op(double %lhs, double %rhs) {
17  %sum = fadd double %lhs, %rhs
18  ret double %sum
19; CHECK-M3-LABEL: double_op:
20; CHECK-M3: blx ___adddf3
21
22; CHECK-M4-LABEL: double_op:
23; CHECK-M4: blx ___adddf3
24}
25