summaryrefslogtreecommitdiff
path: root/test/CodeGen/XCore/epilogue_prologue.ll
blob: 49a4cc79ac212b6d1b60c05c793d2615d0ac7105 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc < %s -march=xcore | FileCheck %s

; CHECK: f1
; CHECK: stw lr, sp[0]
; CHECK: ldw lr, sp[0]
; CHECK-NEXT: retsp 0
define void @f1() nounwind {
entry:
  tail call void asm sideeffect "", "~{lr}"() nounwind
  ret void
}