• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -march=thumb -mcpu=cortex-m3 | FileCheck %s -check-prefix=CORTEXM3
2; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -march=thumb -mcpu=cortex-m4 | FileCheck %s -check-prefix=CORTEXM4
3; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -march=thumb -mcpu=cortex-a8 | FileCheck %s -check-prefix=CORTEXA8
4
5
6define float @foo(float %a, float %b) {
7entry:
8; CHECK: foo
9; CORTEXM3: blx ___mulsf3
10; CORTEXM4: vmul.f32  s0, s1, s0
11; CORTEXA8: vmul.f32  d0, d1, d0
12  %0 = fmul float %a, %b
13  ret float %0
14}
15
16define double @bar(double %a, double %b) {
17entry:
18; CHECK: bar
19  %0 = fmul double %a, %b
20; CORTEXM3: blx ___muldf3
21; CORTEXM4: blx ___muldf3
22; CORTEXA8: vmul.f64  d16, d17, d16
23  ret double %0
24}
25