mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-29 23:12:55 +01:00
690aee262c
According to the AAPCS, when a CPRC is allocated to the stack, all other VFP registers should be marked as unavailable. I have also modified the rules for allocating non-CPRCs to the stack, to make it more explicit that all GPRs must be made unavailable. I cannot think of a case where the old version would produce incorrect answers, so there is no test for this. llvm-svn: 200970
23 lines
783 B
LLVM
23 lines
783 B
LLVM
; RUN: llc < %s -o - -filetype=asm | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64"
|
|
target triple = "armv8-none--eabi"
|
|
|
|
; CHECK-LABEL: fn1:
|
|
define arm_aapcs_vfpcc float @fn1(double %a, double %b, double %c, double %d, double %e, double %f, double %g, float %h, double %i, float %j) {
|
|
ret float %j
|
|
; CHECK: vldr s0, [sp, #8]
|
|
}
|
|
|
|
; CHECK-LABEL: fn2:
|
|
define arm_aapcs_vfpcc float @fn2(double %a, double %b, double %c, double %d, double %e, double %f, float %h, <4 x float> %i, float %j) {
|
|
ret float %j
|
|
; CHECK: vldr s0, [sp, #16]
|
|
}
|
|
|
|
; CHECK-LABEL: fn3:
|
|
define arm_aapcs_vfpcc float @fn3(float %a, double %b, double %c, double %d, double %e, double %f, double %g, double %h, double %i, float %j) #0 {
|
|
ret float %j
|
|
; CHECK: vldr s0, [sp, #8]
|
|
}
|