brintos

brintos / llvm-project-archived public Read only

0
0
Text · 934 B · 2305c26 Raw
28 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2; RUN: llc -mtriple=aarch64-elf -global-isel -stop-after=irtranslator -verify-machineinstrs -o - %s | FileCheck %s3 4@foo_alias = alias ptr, ptr @callee5 6define internal ptr @callee() {7  ; CHECK-LABEL: name: callee8  ; CHECK: bb.1.entry:9  ; CHECK-NEXT:   [[C:%[0-9]+]]:_(p0) = G_CONSTANT i64 010  ; CHECK-NEXT:   $x0 = COPY [[C]](p0)11  ; CHECK-NEXT:   RET_ReallyLR implicit $x012entry:13  ret ptr null14}15 16define void @caller() {17  ; CHECK-LABEL: name: caller18  ; CHECK: bb.1.entry:19  ; CHECK-NEXT:   ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp20  ; CHECK-NEXT:   BL @foo_alias, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit-def $w021  ; CHECK-NEXT:   ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp22  ; CHECK-NEXT:   [[COPY:%[0-9]+]]:_(s32) = COPY $w023  ; CHECK-NEXT:   RET_ReallyLR24entry:25  %0 = call i32 @foo_alias()26  ret void27}28