mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 01:12:53 +00:00
7d24705f65
callee-saved registers at the end of the lists. Also prefer to avoid using the low registers that are in register subclasses required by certain instructions, so that those registers will more likely be available when needed. This change makes a huge improvement in spilling in some cases. Thanks to Jakob for helping me realize the problem. Most of this patch is fixing the testsuite. There are quite a few places where we're checking for specific registers. I changed those to wildcards in places where that doesn't weaken the tests. The spill-q.ll and thumb2-spill-q.ll tests stopped spilling with this change, so I added a bunch of live values to force spills on those tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116055 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
737 B
LLVM
25 lines
737 B
LLVM
; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -march=thumb -mcpu=cortex-m3 | FileCheck %s -check-prefix=CORTEXM3
|
|
; 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
|
|
|
|
|
|
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 d16, d17, d16
|
|
ret double %0
|
|
}
|