summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU
diff options
context:
space:
mode:
authorTim Renouf <tim.renouf@amd.com>2017-09-29 09:48:12 +0000
committerTim Renouf <tim.renouf@amd.com>2017-09-29 09:48:12 +0000
commit9f7ead33344baf87f546e6f90d13b97e291cee4b (patch)
tree0a867dca9847e05295da4bbca9543cfd83115230 /llvm/test/CodeGen/AMDGPU
parent817a3bfcdd0bbac8d74fdfdb83a08484d8f63a30 (diff)
downloadbcm5719-llvm-9f7ead33344baf87f546e6f90d13b97e291cee4b.tar.gz
bcm5719-llvm-9f7ead33344baf87f546e6f90d13b97e291cee4b.zip
[Triple] Add AMDPAL operating system type
Summary: This operating system type represents the AMDGPU PAL runtime, and will be required by the AMDGPU backend in order to generate correct code for this runtime. Currently it generates the same code as not specifying an OS at all. That will change in future commits. Patch from Tim Corringham. Subscribers: arsenm, nhaehnle Differential Revision: https://reviews.llvm.org/D37380 llvm-svn: 314500
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU')
-rw-r--r--llvm/test/CodeGen/AMDGPU/amdpal.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/amdpal.ll b/llvm/test/CodeGen/AMDGPU/amdpal.ll
new file mode 100644
index 00000000000..61205d0cdb8
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/amdpal.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -mtriple=amdgcn--amdpal -mcpu=tahiti | FileCheck --check-prefix=PAL %s
+
+; PAL: .AMDGPU.config
+
+define amdgpu_kernel void @simple(i32 addrspace(1)* %out) {
+entry:
+ store i32 0, i32 addrspace(1)* %out
+ ret void
+}
+
OpenPOWER on IntegriCloud