Files
clang-p2996/llvm/test/CodeGen/AMDGPU/GlobalISel/todo.ll
Tom Stellard 257882ff72 AMDGPU/GlobalISel: Fall-back to SelectionDAG for non-void functions
Reviewers: arsenm, nhaehnle

Reviewed By: nhaehnle

Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, rovka, kristof.beyls, dstuttard, tpr, t-tye, llvm-commits

Differential Revision: https://reviews.llvm.org/D45843

llvm-svn: 330774
2018-04-24 21:29:36 +00:00

11 lines
392 B
LLVM

; RUN: llc -mtriple=amdgcn-mesa-mesa3d -global-isel -global-isel-abort=2 %s -o - 2>&1 | FileCheck %s
; This isn't implemented, but we need to make sure we fall back to SelectionDAG
; instead of generating wrong code.
; CHECK: warning: Instruction selection used fallback path for non_void_ret
; CHECK: non_void_ret:
; CHECK-NOT: s_endpgm
define amdgpu_vs i32 @non_void_ret() {
ret i32 0
}