1; RUN: llc < %s 2 3; NVPTX can not select llvm.stacksave (dynamic_stackalloc) and llvm.stackrestore 4; UNSUPPORTED: nvptx 5 6declare i8* @llvm.stacksave() 7 8declare void @llvm.stackrestore(i8*) 9 10define i32* @test(i32 %N) { 11 %tmp = call i8* @llvm.stacksave( ) ; <i8*> [#uses=1] 12 %P = alloca i32, i32 %N ; <i32*> [#uses=1] 13 call void @llvm.stackrestore( i8* %tmp ) 14 %Q = alloca i32, i32 %N ; <i32*> [#uses=0] 15 ret i32* %P 16} 17 18