1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/test/CodeGen/MSP430/stacksave_restore.ll
Anton Korobeynikov d641d85374 [MSP430] Fix crash while lowering llvm.stacksave/stackrestore
Perform the usual expansion of stacksave / restore intrinsics.
Patch by Kristina Bessonova!

Differential Revision: https://reviews.llvm.org/D54890

llvm-svn: 350710
2019-01-09 12:52:15 +00:00

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*)