summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/global64bitbug.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/global64bitbug.ll')
-rw-r--r--llvm/test/CodeGen/Hexagon/global64bitbug.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/global64bitbug.ll b/llvm/test/CodeGen/Hexagon/global64bitbug.ll
new file mode 100644
index 00000000000..418940b1faa
--- /dev/null
+++ b/llvm/test/CodeGen/Hexagon/global64bitbug.ll
@@ -0,0 +1,9 @@
+; RUN: llc -march=hexagon < %s
+; REQUIRES: asserts
+
+target triple = "hexagon-unknown-linux-gnu"
+
+; Make sure we can emit globals whose size is not a multiple of 64bit.
+; We used to assert here.
+@switch.table = private unnamed_addr constant [6 x i928] [i928 744282853678701455922507579277316643178128753343813693743423064681488139394677769633078380312040969226121498541966016087590661425559764997, i928 744282853678701455922507579277316643178128753343813693743423064681488139394677769633078380312040969226121498541966016087590661425559764997, i928 744282853678701455922507579277316643178128753343813693743423064681488139394677769633078380312040969226121498541966016087590661425559764997, i928 744282853678701455922507579277316643178128753343813693743423064681488139394677769633078378850539331895218580338281183371307641769627222021, i928 744282853678701455922507579277316643178128753343813693743423064681488139394677769633078377389037694564315662134596350655024622113694679045, i928 744282853678701455922507579277316643178128753343813693743423064681488139394677769633078377389037694564315662134596350655024622113694679045]
+
OpenPOWER on IntegriCloud