brintos

brintos / llvm-project-archived public Read only

0
0
Text · 917 B · ab2dd59 Raw
28 lines · plain
1; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -mcpu=cortex-m3 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXM32; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -mcpu=cortex-m4 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXM43; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -mcpu=cortex-m7 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXM74; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -mcpu=cortex-a8 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXA85 6 7define float @foo(float %a, float %b) {8entry:9; CHECK-LABEL: foo:10; CORTEXM3: bl ___mulsf311; CORTEXM4: vmul.f32  s12; CORTEXM7: vmul.f32  s13; CORTEXA8: vmul.f32  d14  %0 = fmul float %a, %b15  ret float %016}17 18define double @bar(double %a, double %b) {19entry:20; CHECK-LABEL: bar:21  %0 = fmul double %a, %b22; CORTEXM3: bl ___muldf323; CORTEXM4: {{bl|b.w}} ___muldf324; CORTEXM7: vmul.f64  d25; CORTEXA8: vmul.f64  d26  ret double %027}28