diff options
author | Diana Picus <diana.picus@linaro.org> | 2016-05-26 15:24:55 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2016-05-26 15:24:55 +0000 |
commit | 81bc3170e8cf9c5063499af8e627e8c709966730 (patch) | |
tree | ca5a91e0f672e5d82c0e5b4f4305790876d83ebc | |
parent | 20a8d8e97e35f3128d40f44e20619b82c2fa1b9a (diff) | |
download | bcm5719-llvm-81bc3170e8cf9c5063499af8e627e8c709966730.tar.gz bcm5719-llvm-81bc3170e8cf9c5063499af8e627e8c709966730.zip |
[AMDGPU] Remove exit-on-error flag from test (PR27762)
Similar to r269948, but for argument lowering.
Fixes PR27762
Differential Revision: http://reviews.llvm.org/D20430
llvm-svn: 270856
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIISelLowering.cpp | 2 | ||||
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp index 2b3c31fe693..c4e64dcda47 100644 --- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp @@ -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; diff --git a/llvm/test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll b/llvm/test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll index e6f51fad6a0..d1fe794b93f 100644 --- a/llvm/test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll +++ b/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 } |