summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-12-12 20:34:06 +0000
committerChris Lattner <sabre@nondot.org>2004-12-12 20:34:06 +0000
commit081da56e9e246ac30c7aa5591bbe405e65cb511c (patch)
tree0c5f3714650c3b5d4281e30488cd2685770fc4a7 /test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll
parent8363ad6bfc1448d5ad186075ac9e1258d4018f36 (diff)
downloadllvm-081da56e9e246ac30c7aa5591bbe405e65cb511c.tar.gz
llvm-081da56e9e246ac30c7aa5591bbe405e65cb511c.tar.bz2
llvm-081da56e9e246ac30c7aa5591bbe405e65cb511c.tar.xz
New testcase that the PPC backend miscompiles. It is emitting
.comm _X,0 For X, which makes the linker thing that X is never defined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll')
-rw-r--r--test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll b/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll
new file mode 100644
index 0000000000..9773de2700
--- /dev/null
+++ b/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll
@@ -0,0 +1,3 @@
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep '.comm.*X,0'
+
+%X = linkonce global {} {}