mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
9ba9ef7b24
Perform the usual expansion of stacksave / restore intrinsics. Patch by Kristina Bessonova! Differential Revision: https://reviews.llvm.org/D54890 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350710 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
249 B
LLVM
14 lines
249 B
LLVM
; RUN: llc < %s -march=msp430
|
|
|
|
target triple = "msp430"
|
|
|
|
define void @foo() {
|
|
entry:
|
|
%0 = tail call i8* @llvm.stacksave()
|
|
tail call void @llvm.stackrestore(i8* %0)
|
|
ret void
|
|
}
|
|
|
|
declare i8* @llvm.stacksave()
|
|
declare void @llvm.stackrestore(i8*)
|