From 081da56e9e246ac30c7aa5591bbe405e65cb511c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 12 Dec 2004 20:34:06 +0000 Subject: [PATCH] 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 --- test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll 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 00000000000..9773de27000 --- /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 {} {} -- 2.34.1