1 ; RUN: llc < %s -mtriple=thumbv7-none-eabi -mcpu=cortex-m4 -mattr=-vfp2 | FileCheck %s -check-prefix=CHECK -check-prefix=SOFT
2 ; RUN: llc < %s -mtriple=thumbv7-none-eabihf -mcpu=cortex-m4 -mattr=+vfp4,-fp64 | FileCheck %s -check-prefix=CHECK -check-prefix=HARD -check-prefix=SP
3 ; RUN: llc < %s -mtriple=thumbv7-none-eabihf -mcpu=cortex-a8 -mattr=+vfp3 | FileCheck %s -check-prefix=CHECK -check-prefix=HARD -check-prefix=DP
5 define float @float_in_reg(float %a, float %b) {
7 ; CHECK-LABEL: float_in_reg:
9 ; HARD: vmov.f32 s0, s1
14 define double @double_in_reg(double %a, double %b) {
16 ; CHECK-LABEL: double_in_reg:
26 define float @float_on_stack(double %a, double %b, double %c, double %d, double %e, double %f, double %g, double %h, float %i) {
27 ; CHECK-LABEL: float_on_stack:
28 ; SOFT: ldr r0, [sp, #48]
34 define double @double_on_stack(double %a, double %b, double %c, double %d, double %e, double %f, double %g, double %h, double %i) {
35 ; CHECK-LABEL: double_on_stack:
36 ; SOFT: ldrd r0, r1, [sp, #48]
42 define double @double_not_split(double %a, double %b, double %c, double %d, double %e, double %f, double %g, float %h, double %i) {
43 ; CHECK-LABEL: double_not_split:
44 ; SOFT: ldrd r0, r1, [sp, #48]