Skip to content

Commit

Permalink
[AMDGPU] Remove exit-on-error flag from test (PR27762)
Browse files Browse the repository at this point in the history
Similar to r269948, but for argument lowering.

Fixes PR27762

Differential Revision: http://reviews.llvm.org/D20430

llvm-svn: 270856
  • Loading branch information
rovka committed May 26, 2016
1 parent 20a8d8e commit 81bc317
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Expand Up @@ -581,7 +581,7 @@ SDValue SITargetLowering::LowerFormalArguments(
DiagnosticInfoUnsupported NoGraphicsHSA(
*Fn, "unsupported non-compute shaders with HSA", DL.getDebugLoc());
DAG.getContext()->diagnose(NoGraphicsHSA);
return SDValue();
return DAG.getEntryNode();
}

SmallVector<ISD::InputArg, 16> Splits;
Expand Down
4 changes: 3 additions & 1 deletion llvm/test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll
@@ -1,14 +1,16 @@
; RUN: not llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa -exit-on-error < %s 2>&1 | FileCheck %s
; RUN: not llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa < %s 2>&1 | FileCheck %s

; CHECK: in function pixel_s{{.*}}: unsupported non-compute shaders with HSA
define amdgpu_ps void @pixel_shader() #0 {
ret void
}

; CHECK: in function vertex_s{{.*}}: unsupported non-compute shaders with HSA
define amdgpu_vs void @vertex_shader() #0 {
ret void
}

; CHECK: in function geometry_s{{.*}}: unsupported non-compute shaders with HSA
define amdgpu_gs void @geometry_shader() #0 {
ret void
}

0 comments on commit 81bc317

Please sign in to comment.