brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · cf0f0a2 Raw
62 lines · plain
1# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -o - %s | FileCheck %s2 3--- |4  declare dllimport void @callee_func() local_unnamed_addr5 6  define dso_local void @caller() local_unnamed_addr {7  entry:8    call void @callee_func()9    call void @callee_func()10    ret void11  }12...13---14name:            caller15stack:16  - { id: 0, name: '', type: spill-slot, offset: -8, size: 8, alignment: 8,17      stack-id: default, callee-saved-register: '$lr', callee-saved-restored: true,18      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }19  - { id: 1, name: '', type: spill-slot, offset: -16, size: 8, alignment: 8,20      stack-id: default, callee-saved-register: '$x19', callee-saved-restored: true,21      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }22calledGlobals:23  - bb:              024    offset:          725    callee:          callee_func26    flags:           14427  - bb:              028    offset:          829    callee:          callee_func30    flags:           14431body:             |32  bb.0.entry:33    liveins: $x19, $lr34 35    early-clobber $sp = frame-setup STRXpre killed $x19, $sp, -16 :: (store (s64) into %stack.1)36    frame-setup SEH_SaveReg_X 19, -1637    frame-setup STRXui killed $lr, $sp, 1 :: (store (s64) into %stack.0)38    frame-setup SEH_SaveReg 30, 839    frame-setup SEH_PrologEnd40    $x19 = ADRP target-flags(aarch64-page, aarch64-got, aarch64-dllimport) @callee_func41    renamable $x19 = LDRXui killed $x19, target-flags(aarch64-pageoff, aarch64-got, aarch64-nc, aarch64-dllimport) @callee_func42    BLR renamable $x19, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp43    BLR killed renamable $x19, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp44    frame-destroy SEH_EpilogStart45    $lr = frame-destroy LDRXui $sp, 1 :: (load (s64) from %stack.0)46    frame-destroy SEH_SaveReg 30, 847    early-clobber $sp, $x19 = frame-destroy LDRXpost $sp, 16 :: (load (s64) from %stack.1)48    frame-destroy SEH_SaveReg_X 19, -1649    frame-destroy SEH_EpilogEnd50    RET undef $lr51...52 53# CHECK-LABEL: calledGlobals:54# CHECK-NEXT:  - bb:              055# CHECK-NEXT:    offset:          756# CHECK-NEXT:    callee:          callee_func57# CHECK-NEXT:    flags:           14458# CHECK-NEXT:  - bb:              059# CHECK-NEXT:    offset:          860# CHECK-NEXT:    callee:          callee_func61# CHECK-NEXT:    flags:           14462