diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-11-02 23:23:02 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-11-02 23:23:02 +0000 |
| commit | d48da14269baa7088557e03075ba454dd9af3e9d (patch) | |
| tree | 5b2528de52653647a6c36ee26f3b90ed2fdd940c /llvm/test | |
| parent | 0ed9aeaa5f62fec1f3689cf6727c7f965857f532 (diff) | |
| download | bcm5719-llvm-d48da14269baa7088557e03075ba454dd9af3e9d.tar.gz bcm5719-llvm-d48da14269baa7088557e03075ba454dd9af3e9d.zip | |
AMDGPU: Error on graphics shaders with HSA
I've found myself pointlessly debugging problems from running
graphics tests with an HSA triple a few times, so stop this from
happening again.
llvm-svn: 251858
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll b/llvm/test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll new file mode 100644 index 00000000000..73a146710a9 --- /dev/null +++ b/llvm/test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll @@ -0,0 +1,18 @@ +; RUN: not llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa < %s 2>&1 | FileCheck %s + +; CHECK: error: unsupported non-compute shaders with HSA in pixel_shader +define void @pixel_shader() #0 { + ret void +} + +define void @vertex_shader() #1 { + ret void +} + +define void @geometry_shader() #2 { + ret void +} + +attributes #0 = { nounwind "ShaderType"="0" } +attributes #1 = { nounwind "ShaderType"="1" } +attributes #2 = { nounwind "ShaderType"="2" } |

