2010-08-11 17:31:12 +00:00
|
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -march=thumb -mcpu=cortex-m3 | FileCheck %s -check-prefix=CORTEXM3
|
2010-08-11 17:32:46 +00:00
|
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -march=thumb -mcpu=cortex-m4 | FileCheck %s -check-prefix=CORTEXM4
|
|
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -march=thumb -mcpu=cortex-a8 | FileCheck %s -check-prefix=CORTEXA8
|
2010-08-11 15:44:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
define float @foo(float %a, float %b) {
|
|
|
|
entry:
|
|
|
|
; CHECK: foo
|
|
|
|
; CORTEXM3: blx ___mulsf3
|
2013-01-19 00:03:32 +00:00
|
|
|
; CORTEXM4: vmul.f32 s
|
2012-09-29 21:43:49 +00:00
|
|
|
; CORTEXA8: vmul.f32 d
|
2010-08-11 15:44:15 +00:00
|
|
|
%0 = fmul float %a, %b
|
|
|
|
ret float %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define double @bar(double %a, double %b) {
|
|
|
|
entry:
|
|
|
|
; CHECK: bar
|
|
|
|
%0 = fmul double %a, %b
|
|
|
|
; CORTEXM3: blx ___muldf3
|
|
|
|
; CORTEXM4: blx ___muldf3
|
2012-09-29 21:43:49 +00:00
|
|
|
; CORTEXA8: vmul.f64 d
|
2010-08-11 15:44:15 +00:00
|
|
|
ret double %0
|
|
|
|
}
|