3 ; NVPTX can not select llvm.stacksave (dynamic_stackalloc) and llvm.stackrestore
4 ; UNSUPPORTED: target=nvptx{{.*}}
6 declare ptr @llvm.stacksave()
8 declare void @llvm.stackrestore(ptr)
10 define ptr @test(i32 %N) {
11 %tmp = call ptr @llvm.stacksave( ) ; <ptr> [#uses=1]
12 %P = alloca i32, i32 %N ; <ptr> [#uses=1]
13 call void @llvm.stackrestore( ptr %tmp )
14 %Q = alloca i32, i32 %N ; <ptr> [#uses=0]