xref: /llvm-project/llvm/test/CodeGen/M68k/GlobalISel/irtranslator-pic.ll (revision 5aa3af3fcb014145ab315090bd3cbea00bea0038)
1; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2; RUN: llc -mtriple=m68k --relocation-model=pic -O0 -global-isel -stop-after=irtranslator -verify-machineinstrs %s -o - | FileCheck %s
3
4define void @test_pic() nounwind {
5  ; CHECK-LABEL: name: test_pic
6  ; CHECK: bb.1 (%ir-block.0):
7  ; CHECK-NEXT:   ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit-def $ccr, implicit $sp
8  ; CHECK-NEXT:   CALLq @test_pic_callee, csr_std, implicit $sp
9  ; CHECK-NEXT:   ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit-def $ccr, implicit $sp
10  ; CHECK-NEXT:   RTS
11  call void @test_pic_callee()
12  ret void
13}
14declare void @test_pic_callee()
15