Some generic tests are not supported by the nvptx now. Moreover, they are no plans to fix the tested features in nvptx. So, suggest to mark them as UNSUPPORTED Differential Revision: https://reviews.llvm.org/D123928
18 lines
481 B
LLVM
18 lines
481 B
LLVM
; RUN: llc < %s
|
|
|
|
; NVPTX can not select llvm.stacksave (dynamic_stackalloc) and llvm.stackrestore
|
|
; UNSUPPORTED: nvptx
|
|
|
|
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
|
|
}
|
|
|