[XCore] Fix handling of functions where only the LR is spilled.
[oota-llvm.git] / test / CodeGen / XCore / epilogue_prologue.ll
1 ; RUN: llc < %s -march=xcore | FileCheck %s
2
3 ; CHECK: f1
4 ; CHECK: stw lr, sp[0]
5 ; CHECK: ldw lr, sp[0]
6 ; CHECK-NEXT: retsp 0
7 define void @f1() nounwind {
8 entry:
9   tail call void asm sideeffect "", "~{lr}"() nounwind
10   ret void
11 }