xref: /llvm-project/llvm/test/CodeGen/MSP430/stacksave_restore.ll (revision 171056ff5778c40df916c5a4cea84ea6320b965f)
1; RUN: llc < %s -mtriple=msp430
2
3target triple = "msp430"
4
5define void @foo() {
6entry:
7  %0 = tail call ptr @llvm.stacksave()
8  tail call void @llvm.stackrestore(ptr %0)
9  ret void
10}
11
12declare ptr @llvm.stacksave()
13declare void @llvm.stackrestore(ptr)
14