diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/CodeGen/XCore/epilogue_prologue.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/epilogue_prologue.ll b/test/CodeGen/XCore/epilogue_prologue.ll new file mode 100644 index 0000000..49a4cc7 --- /dev/null +++ b/test/CodeGen/XCore/epilogue_prologue.ll @@ -0,0 +1,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 +} |
