mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
8b2b8a1835
This update was done with the following bash script: find test/CodeGen -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc.*debug" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_-]*\):\( *\)$FUNC: *\$/;\1\2-LABEL:\3$FUNC:/g" $TEMP done sed -i '' "s/;\(.*\)-LABEL-LABEL:/;\1-LABEL:/" $TEMP sed -i '' "s/;\(.*\)-NEXT-LABEL:/;\1-NEXT:/" $TEMP sed -i '' "s/;\(.*\)-NOT-LABEL:/;\1-NOT:/" $TEMP sed -i '' "s/;\(.*\)-DAG-LABEL:/;\1-DAG:/" $TEMP mv $TEMP $NAME fi done git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186280 91177308-0d34-0410-b5e6-96231b3b80d8
87 lines
3.0 KiB
LLVM
87 lines
3.0 KiB
LLVM
; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s
|
|
|
|
@var = global float 0.0
|
|
|
|
define void @foo() {
|
|
; CHECK-LABEL: foo:
|
|
|
|
; CHECK: stp d14, d15, [sp
|
|
; CHECK: stp d12, d13, [sp
|
|
; CHECK: stp d10, d11, [sp
|
|
; CHECK: stp d8, d9, [sp
|
|
|
|
; Create lots of live variables to exhaust the supply of
|
|
; caller-saved registers
|
|
%val1 = load volatile float* @var
|
|
%val2 = load volatile float* @var
|
|
%val3 = load volatile float* @var
|
|
%val4 = load volatile float* @var
|
|
%val5 = load volatile float* @var
|
|
%val6 = load volatile float* @var
|
|
%val7 = load volatile float* @var
|
|
%val8 = load volatile float* @var
|
|
%val9 = load volatile float* @var
|
|
%val10 = load volatile float* @var
|
|
%val11 = load volatile float* @var
|
|
%val12 = load volatile float* @var
|
|
%val13 = load volatile float* @var
|
|
%val14 = load volatile float* @var
|
|
%val15 = load volatile float* @var
|
|
%val16 = load volatile float* @var
|
|
%val17 = load volatile float* @var
|
|
%val18 = load volatile float* @var
|
|
%val19 = load volatile float* @var
|
|
%val20 = load volatile float* @var
|
|
%val21 = load volatile float* @var
|
|
%val22 = load volatile float* @var
|
|
%val23 = load volatile float* @var
|
|
%val24 = load volatile float* @var
|
|
%val25 = load volatile float* @var
|
|
%val26 = load volatile float* @var
|
|
%val27 = load volatile float* @var
|
|
%val28 = load volatile float* @var
|
|
%val29 = load volatile float* @var
|
|
%val30 = load volatile float* @var
|
|
%val31 = load volatile float* @var
|
|
%val32 = load volatile float* @var
|
|
|
|
store volatile float %val1, float* @var
|
|
store volatile float %val2, float* @var
|
|
store volatile float %val3, float* @var
|
|
store volatile float %val4, float* @var
|
|
store volatile float %val5, float* @var
|
|
store volatile float %val6, float* @var
|
|
store volatile float %val7, float* @var
|
|
store volatile float %val8, float* @var
|
|
store volatile float %val9, float* @var
|
|
store volatile float %val10, float* @var
|
|
store volatile float %val11, float* @var
|
|
store volatile float %val12, float* @var
|
|
store volatile float %val13, float* @var
|
|
store volatile float %val14, float* @var
|
|
store volatile float %val15, float* @var
|
|
store volatile float %val16, float* @var
|
|
store volatile float %val17, float* @var
|
|
store volatile float %val18, float* @var
|
|
store volatile float %val19, float* @var
|
|
store volatile float %val20, float* @var
|
|
store volatile float %val21, float* @var
|
|
store volatile float %val22, float* @var
|
|
store volatile float %val23, float* @var
|
|
store volatile float %val24, float* @var
|
|
store volatile float %val25, float* @var
|
|
store volatile float %val26, float* @var
|
|
store volatile float %val27, float* @var
|
|
store volatile float %val28, float* @var
|
|
store volatile float %val29, float* @var
|
|
store volatile float %val30, float* @var
|
|
store volatile float %val31, float* @var
|
|
store volatile float %val32, float* @var
|
|
|
|
; CHECK: ldp d8, d9, [sp
|
|
; CHECK: ldp d10, d11, [sp
|
|
; CHECK: ldp d12, d13, [sp
|
|
; CHECK: ldp d14, d15, [sp
|
|
ret void
|
|
}
|