summaryrefslogtreecommitdiff
path: root/test/CodeGen/R600/gep-address-space.ll
blob: 6c67ed43619d710f051eb26da8ef90be52f23055 (plain)
1
2
3
4
5
6
7
8
9
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
}