diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-27 06:44:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-27 06:44:54 +0000 |
commit | 9f06f911d197577b80d208a167980833b4fb9ad5 (patch) | |
tree | 6e92a19eb1ef843d25b82d377dd2ee9ff5283801 /llvm/test/CodeGen/PowerPC/align.ll | |
parent | 4362a1c9871e87c283a9c2d475ff3ca6ec32febe (diff) | |
download | bcm5719-llvm-9f06f911d197577b80d208a167980833b4fb9ad5.tar.gz bcm5719-llvm-9f06f911d197577b80d208a167980833b4fb9ad5.zip |
the latest assembler that runs on powerpc 10.4 machines doesn't
support aligned comm. Detect when compiling for 10.4 and don't
emit an alignment for comm. THis will hopefully fix PR8198.
llvm-svn: 114817
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/align.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/align.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/align.ll b/llvm/test/CodeGen/PowerPC/align.ll index 109a83726e9..0797ca8d0be 100644 --- a/llvm/test/CodeGen/PowerPC/align.ll +++ b/llvm/test/CodeGen/PowerPC/align.ll @@ -1,5 +1,6 @@ ; RUN: llc < %s -mtriple=powerpc-linux-gnu | FileCheck %s -check-prefix=ELF ; RUN: llc < %s -mtriple=powerpc-apple-darwin9 | FileCheck %s -check-prefix=DARWIN +; RUN: llc < %s -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=DARWIN8 @a = global i1 true ; no alignment @@ -40,3 +41,6 @@ @bar = common global [75 x i8] zeroinitializer, align 128 ;ELF: .comm bar,75,128 ;DARWIN: .comm _bar,75,7 + +;; Darwin8 doesn't support aligned comm. Just miscompile this. +; DARWIN8: .comm _bar,75 ; |