diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-11-06 14:32:33 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-11-06 14:32:33 +0000 |
commit | cc56a8b108132134b17c8b70e0c1df59e1dad828 (patch) | |
tree | 8587e92b21406971a74281052d82e6fbe9d62bda /llvm/test/CodeGen/AMDGPU/unknown-processor.ll | |
parent | 6720a089fd566be17e761a693a4f8bbba79d6d05 (diff) | |
download | bcm5719-llvm-cc56a8b108132134b17c8b70e0c1df59e1dad828.tar.gz bcm5719-llvm-cc56a8b108132134b17c8b70e0c1df59e1dad828.zip |
[AMDGPU] Change alloca addr space of r600 to 5 for amdgiz environment
Differential Revision: https://reviews.llvm.org/D39657
llvm-svn: 317479
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/unknown-processor.ll')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/unknown-processor.ll | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/unknown-processor.ll b/llvm/test/CodeGen/AMDGPU/unknown-processor.ll index e25f2235993..6dfcff77d81 100644 --- a/llvm/test/CodeGen/AMDGPU/unknown-processor.ll +++ b/llvm/test/CodeGen/AMDGPU/unknown-processor.ll @@ -1,5 +1,6 @@ -; RUN: llc -march=amdgcn -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=GCN %s -; RUN: llc -march=r600 -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=R600 %s +; RUN: llc -march=amdgcn -mtriple=amdgcn---amdgiz -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=GCN %s +; RUN: llc -march=r600 -mtriple=r600---amdgiz -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=R600 %s +target datalayout = "A5" ; Should not crash when the processor is not recognized and the ; wavefront size feature not set. @@ -14,7 +15,7 @@ ; R600: MOV define amdgpu_kernel void @foo() { - %alloca = alloca i32, align 4 - store volatile i32 0, i32* %alloca + %alloca = alloca i32, align 4, addrspace(5) + store volatile i32 0, i32 addrspace(5)* %alloca ret void } |