summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/sdata-array.ll
blob: 89ef46079f7c9999c7f650f19dd2e26a3b015af6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llc -march=hexagon < %s | FileCheck %s

; No arrays in sdata.
; CHECK: memb(##foo)

@foo = common global [4 x i8] zeroinitializer, align 1

define void @set() nounwind {
entry:
  store i8 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @foo, i32 0, i32 0), align 1
  ret void
}

OpenPOWER on IntegriCloud