New testcase that the PPC backend miscompiles. It is emitting
authorChris Lattner <sabre@nondot.org>
Sun, 12 Dec 2004 20:34:06 +0000 (20:34 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 12 Dec 2004 20:34:06 +0000 (20:34 +0000)
  .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

test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll [new file with mode: 0644]

diff --git a/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll b/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll
new file mode 100644 (file)
index 0000000..9773de2
--- /dev/null
@@ -0,0 +1,3 @@
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep '.comm.*X,0'
+
+%X = linkonce global {} {}