projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
testcase for the llvm.stacksave/llvm.stackrestore intrinsics.
[oota-llvm.git]
/
test
/
CodeGen
/
stacksave-restore.ll
1
; RUN: llvm-as < %s | llc
2
3
declare sbyte* %llvm.stacksave()
4
declare void %llvm.stackrestore(sbyte*)
5
6
int *%test(uint %N) {
7
%tmp = call sbyte* %llvm.stacksave()
8
%P = alloca int, uint %N
9
call void %llvm.stackrestore(sbyte* %tmp)
10
%Q = alloca int, uint %N
11
ret int* %P
12
}