mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-11 08:07:22 +00:00
3cc5d13f58
properly investigated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110825 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
680 B
LLVM
25 lines
680 B
LLVM
; RUN_TEMPORARILY_DISABLED: llc < %s -march=thumb -mcpu=cortex-m3 | FileCheck %s -check-prefix=CORTEXM3
|
|
; RUN_TEMPORARILY_DISABLED: llc < %s -march=thumb -mcpu=cortex-m4 | FileCheck %s -check-prefix=CORTEXM4
|
|
; RUN: llc < %s -march=thumb -mcpu=cortex-a8 | FileCheck %s -check-prefix=CORTEXA8
|
|
|
|
|
|
define float @foo(float %a, float %b) {
|
|
entry:
|
|
; CHECK: foo
|
|
; CORTEXM3: blx ___mulsf3
|
|
; CORTEXM4: vmul.f32 s0, s1, s0
|
|
; CORTEXA8: vmul.f32 d0, d1, d0
|
|
%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
|
|
; CORTEXA8: vmul.f64 d0, d1, d0
|
|
ret double %0
|
|
}
|