source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/Generic/stacksave-restore.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 378 bytes
Line 
1; RUN: llc < %s
2
3declare i8* @llvm.stacksave()
4
5declare void @llvm.stackrestore(i8*)
6
7define i32* @test(i32 %N) {
8        %tmp = call i8* @llvm.stacksave( )              ; <i8*> [#uses=1]
9        %P = alloca i32, i32 %N         ; <i32*> [#uses=1]
10        call void @llvm.stackrestore( i8* %tmp )
11        %Q = alloca i32, i32 %N         ; <i32*> [#uses=0]
12        ret i32* %P
13}
14
Note: See TracBrowser for help on using the repository browser.