summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/inline-asm.ll
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2016-01-06 22:01:04 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2016-01-06 22:01:04 +0000
commita61e5a8d4ebaae5d54f22c3564bfd77f3d7cf8a2 (patch)
tree4fd7b05b4fb598c56f43ecb44f35bf30bc2b1c46 /llvm/test/CodeGen/AMDGPU/inline-asm.ll
parent0f56118c57387fe478742953519514cc350c5ea1 (diff)
downloadbcm5719-llvm-a61e5a8d4ebaae5d54f22c3564bfd77f3d7cf8a2.tar.gz
bcm5719-llvm-a61e5a8d4ebaae5d54f22c3564bfd77f3d7cf8a2.zip
AMDGPU/SI: Fix crash when inline assembly is used in a graphics shader
Summary: This is admittedly something that you could only run into by manually playing around with shader assembly because the SITypeWriter pass is skipped for compute. Reviewers: arsenm, tstellarAMD Subscribers: arsenm, llvm-commits Differential Revision: http://reviews.llvm.org/D15902 llvm-svn: 256980
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/inline-asm.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/inline-asm.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/inline-asm.ll b/llvm/test/CodeGen/AMDGPU/inline-asm.ll
index efc2292de3a..9c8d3534f8a 100644
--- a/llvm/test/CodeGen/AMDGPU/inline-asm.ll
+++ b/llvm/test/CodeGen/AMDGPU/inline-asm.ll
@@ -10,3 +10,14 @@ entry:
call void asm sideeffect "s_endpgm", ""()
ret void
}
+
+; CHECK: {{^}}inline_asm_shader:
+; CHECK: s_endpgm
+; CHECK: s_endpgm
+define void @inline_asm_shader() #0 {
+entry:
+ call void asm sideeffect "s_endpgm", ""()
+ ret void
+}
+
+attributes #0 = { "ShaderType"="0" }
OpenPOWER on IntegriCloud