brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 434a0e3 Raw
48 lines · plain
1# RUN: llc -mtriple=aarch64 -run-pass=prologepilog %s -o - | FileCheck %s2# RUN: llc -mtriple=aarch64 -passes='prolog-epilog' %s -o - | FileCheck %s3--- |4  define i32 @_Z4funcv() {5  entry:6    %array = alloca [1073741824 x i32], align 47    %arrayidx = getelementptr inbounds [1073741824 x i32], ptr %array, i64 0, i64 208    store i32 7, ptr %arrayidx, align 49    call void @_Z5func2v()10    %arrayidx1 = getelementptr inbounds [1073741824 x i32], ptr %array, i64 0, i64 2011    %0 = load i32, ptr %arrayidx1, align 412    ret i32 %013  }14 15  declare void @_Z5func2v()16...17---18name:            _Z4funcv19alignment:       420legalized:       true21regBankSelected: true22selected:        true23tracksRegLiveness: true24noPhis:          true25isSSA:           false26noVRegs:         true27hasFakeUses:     false28frameInfo:29  maxAlignment:    430  adjustsStack:    true31  hasCalls:        true32  maxCallFrameSize: 033stack:34  - { id: 0, name: array, size: 4294967296, alignment: 4, local-offset: -4294967296 }35machineFunctionInfo: {}36body:             |37  bb.1.entry:38    renamable $w8 = MOVi32imm 739    STRWui killed renamable $w8, %stack.0.array, 20 :: (store (s32) into %ir.arrayidx)40    ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp41    BL @_Z5func2v, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp42    ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp43    renamable $w0 = LDRWui %stack.0.array, 20 :: (dereferenceable load (s32) from %ir.arrayidx1)44    ; CHECK: early-clobber $sp, $fp, $lr = frame-destroy LDPXpost $sp, 245    RET_ReallyLR implicit killed $w046 47...48