mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
d641d85374
Perform the usual expansion of stacksave / restore intrinsics. Patch by Kristina Bessonova! Differential Revision: https://reviews.llvm.org/D54890 llvm-svn: 350710
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*)
|