brintos

brintos / llvm-project-archived public Read only

0
0
Text · 734 B · 9be8c04 Raw
16 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2; RUN: llc %s -stop-after=irtranslator -verify-machineinstrs -mtriple aarch64-apple-darwin -global-isel -o - 2>&1 | FileCheck %s --check-prefix=DARWIN3 4; Shouldn't tail call when the OS doesn't support it.5declare extern_weak void @extern_weak_fn()6define void @test_extern_weak() {7  ; DARWIN-LABEL: name: test_extern_weak8  ; DARWIN: bb.1 (%ir-block.0):9  ; DARWIN:   ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp10  ; DARWIN:   BL @extern_weak_fn, csr_darwin_aarch64_aapcs, implicit-def $lr, implicit $sp11  ; DARWIN:   ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp12  ; DARWIN:   RET_ReallyLR13  tail call void @extern_weak_fn()14  ret void15}16