Compiler projects using llvm
; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
; RUN: llc -mtriple=m68k --relocation-model=pic -O0 -global-isel -stop-after=irtranslator -verify-machineinstrs %s -o - | FileCheck %s

define void @test_pic() nounwind {
  ; CHECK-LABEL: name: test_pic
  ; CHECK: bb.1 (%ir-block.0):
  ; CHECK-NEXT:   ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit-def $ccr, implicit $sp
  ; CHECK-NEXT:   CALLq @test_pic_callee, csr_std, implicit $sp
  ; CHECK-NEXT:   ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit-def $ccr, implicit $sp
  ; CHECK-NEXT:   RTS
  call void @test_pic_callee()
  ret void
}
declare void @test_pic_callee()