2017-08-02 00:20:49 +02:00
|
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -mcpu=cortex-m3 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXM3
|
|
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -mcpu=cortex-m4 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXM4
|
|
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -mcpu=cortex-m7 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXM7
|
|
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -mcpu=cortex-a8 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXA8
|
2010-08-11 17:44:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
define float @foo(float %a, float %b) {
|
|
|
|
entry:
|
2014-02-16 14:28:15 +01:00
|
|
|
; CHECK-LABEL: foo:
|
2014-08-06 13:13:14 +02:00
|
|
|
; CORTEXM3: bl ___mulsf3
|
2013-01-19 01:03:32 +01:00
|
|
|
; CORTEXM4: vmul.f32 s
|
2014-10-01 11:02:17 +02:00
|
|
|
; CORTEXM7: vmul.f32 s
|
2012-09-29 23:43:49 +02:00
|
|
|
; CORTEXA8: vmul.f32 d
|
2010-08-11 17:44:15 +02:00
|
|
|
%0 = fmul float %a, %b
|
|
|
|
ret float %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define double @bar(double %a, double %b) {
|
|
|
|
entry:
|
2014-02-16 14:28:15 +01:00
|
|
|
; CHECK-LABEL: bar:
|
2010-08-11 17:44:15 +02:00
|
|
|
%0 = fmul double %a, %b
|
2014-08-06 13:13:14 +02:00
|
|
|
; CORTEXM3: bl ___muldf3
|
2014-08-21 14:50:31 +02:00
|
|
|
; CORTEXM4: {{bl|b.w}} ___muldf3
|
2014-10-01 11:02:17 +02:00
|
|
|
; CORTEXM7: vmul.f64 d
|
2012-09-29 23:43:49 +02:00
|
|
|
; CORTEXA8: vmul.f64 d
|
2010-08-11 17:44:15 +02:00
|
|
|
ret double %0
|
|
|
|
}
|