brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · f6fc627 Raw
36 lines · plain
1# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass=prologepilog %s -o - | FileCheck %s2 3# Ensure references to scavenged stack slots in the CSR area use the4# FP as a base when the stack pointer must be aligned to something5# larger than required by the target. This is necessary because the6# alignment padding area is between the CSR area and the SP, so the SP7# cannot be used to reference the CSR area.8name:            test9tracksRegLiveness: true10frameInfo:11  maxAlignment:    6412# CHECK:      stack:13# CHECK:        id: 0, name: '', type: default, offset: -64, size: 4, alignment: 6414# CHECK-NEXT:     stack-id: default15# CHECK-NEXT:     local-offset: -6416# CHECK:        id: 1, name: '', type: default, offset: -4, size: 4, alignment: 417# CHECK-NEXT:     stack-id: default18# CHECK-NEXT:     local-offset: -6819stack:20  - { id: 0, size: 4, alignment: 64, local-offset: -64 }21  - { id: 1, size: 4, alignment: 4, local-offset: -68 }22 23# CHECK: body:24# CHECK:   $sp = frame-setup ANDXri killed ${{x[0-9]+}}, 786525# CHECK:   STRSui $s0, $sp, 026# CHECK:   STRSui $s0, $fp, 727body:             |28  bb.0.entry:29    liveins: $s030 31    STRSui $s0, %stack.0, 032    STRSui $s0, %stack.1, 033    ; Force preserve a CSR to create a hole in the CSR stack region.34    $x28 = IMPLICIT_DEF35    RET_ReallyLR36