2016-04-22 02:56:45 +08:00
|
|
|
; RUN: llc -march=hexagon < %s | FileCheck %s
|
|
|
|
|
|
|
|
; No arrays in sdata.
|
|
|
|
; CHECK: memb(##foo)
|
|
|
|
|
|
|
|
@foo = common global [4 x i8] zeroinitializer, align 1
|
|
|
|
|
2017-10-21 03:33:12 +08:00
|
|
|
define void @set(i8 %x) nounwind {
|
2016-04-22 02:56:45 +08:00
|
|
|
entry:
|
2017-10-21 03:33:12 +08:00
|
|
|
store i8 %x, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @foo, i32 0, i32 0), align 1
|
2016-04-22 02:56:45 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|