diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-10-21 20:03:54 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-10-21 20:03:54 +0000 |
commit | ff71812dfaf30015a9abc5cb4712e67b96fe075e (patch) | |
tree | f35bb3e746d129f4b64ea70f6d55fc619923af0f /test/CodeGen/R600/gep-address-space.ll | |
parent | 244d24597497c09ab68969c8bbbdf2576130262c (diff) | |
download | external_llvm-ff71812dfaf30015a9abc5cb4712e67b96fe075e.zip external_llvm-ff71812dfaf30015a9abc5cb4712e67b96fe075e.tar.gz external_llvm-ff71812dfaf30015a9abc5cb4712e67b96fe075e.tar.bz2 |
Fix CodeGen for different size address space GEPs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/gep-address-space.ll')
-rw-r--r-- | test/CodeGen/R600/gep-address-space.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/R600/gep-address-space.ll b/test/CodeGen/R600/gep-address-space.ll new file mode 100644 index 0000000..6c67ed4 --- /dev/null +++ b/test/CodeGen/R600/gep-address-space.ll @@ -0,0 +1,10 @@ +; RUN: llc -march=r600 -mcpu=SI < %s | FileCheck %s + +define void @use_gep_address_space([1024 x i32] addrspace(3)* %array) nounwind { +; CHECK-LABEL @use_gep_address_space: +; CHECK: ADD_I32 + %p = getelementptr [1024 x i32] addrspace(3)* %array, i16 0, i16 16 + store i32 99, i32 addrspace(3)* %p + ret void +} + |