mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
aeb9bb8ba4
llvm-svn: 47296
15 lines
388 B
LLVM
15 lines
388 B
LLVM
; RUN: llvm-as < %s | llc
|
|
|
|
declare i8* @llvm.stacksave()
|
|
|
|
declare void @llvm.stackrestore(i8*)
|
|
|
|
define i32* @test(i32 %N) {
|
|
%tmp = call i8* @llvm.stacksave( ) ; <i8*> [#uses=1]
|
|
%P = alloca i32, i32 %N ; <i32*> [#uses=1]
|
|
call void @llvm.stackrestore( i8* %tmp )
|
|
%Q = alloca i32, i32 %N ; <i32*> [#uses=0]
|
|
ret i32* %P
|
|
}
|
|
|