25 lines · plain
1; RUN: llc -mtriple=thumbv7m-apple-darwin -mcpu=cortex-m3 < %s | FileCheck %s --check-prefix=CHECK-M32; RUN: llc -mtriple=thumbv7em-apple-darwin -mcpu=cortex-m4 < %s | FileCheck %s --check-prefix=CHECK-M43; RUN: llc -mtriple=thumbv7-apple-darwin -mcpu=cortex-m3 < %s | FileCheck %s --check-prefix=CHECK-M34; RUN: llc -mtriple=thumbv7-apple-darwin -mcpu=cortex-m4 < %s | FileCheck %s --check-prefix=CHECK-M45 6define float @float_op(float %lhs, float %rhs) {7 %sum = fadd float %lhs, %rhs8 ret float %sum9; CHECK-M3-LABEL: float_op:10; CHECK-M3: bl ___addsf311 12; CHECK-M4-LABEL: float_op:13; CHECK-M4: vadd.f3214}15 16define double @double_op(double %lhs, double %rhs) {17 %sum = fadd double %lhs, %rhs18 ret double %sum19; CHECK-M3-LABEL: double_op:20; CHECK-M3: bl ___adddf321 22; CHECK-M4-LABEL: double_op:23; CHECK-M4: {{(bl|blx|b.w)}} ___adddf324}25