summaryrefslogtreecommitdiff
path: root/test/CodeGen/Hexagon/sdata-array.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Hexagon/sdata-array.ll')
-rw-r--r--test/CodeGen/Hexagon/sdata-array.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/Hexagon/sdata-array.ll b/test/CodeGen/Hexagon/sdata-array.ll
new file mode 100644
index 0000000000000..89ef46079f7c9
--- /dev/null
+++ b/test/CodeGen/Hexagon/sdata-array.ll
@@ -0,0 +1,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
+}
+