mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 23:43:50 +00:00
Allow .lcomm with alignment on ELF targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214754 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aafa4b5c86
commit
e8f23a8a5d
@ -73,6 +73,7 @@ PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit, const Triple& T) {
|
||||
ZeroDirective = "\t.space\t";
|
||||
Data64bitsDirective = is64Bit ? "\t.quad\t" : nullptr;
|
||||
AssemblerDialect = 1; // New-Style mnemonics.
|
||||
LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
|
||||
|
||||
if (T.getOS() == llvm::Triple::FreeBSD ||
|
||||
(T.getOS() == llvm::Triple::NetBSD && !is64Bit) ||
|
||||
|
22
test/MC/PowerPC/lcomm.s
Normal file
22
test/MC/PowerPC/lcomm.s
Normal file
@ -0,0 +1,22 @@
|
||||
# RUN: llvm-mc -triple powerpc-unknown-unknown -filetype=obj %s | \
|
||||
# RUN: llvm-readobj -s -sd | FileCheck %s
|
||||
# RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \
|
||||
# RUN: llvm-readobj -s -sd | FileCheck %s
|
||||
|
||||
.lcomm foo, 16, 16
|
||||
|
||||
// CHECK: Section {
|
||||
// CHECK: Name: .bss
|
||||
// CHECK-NEXT: Type: SHT_NOBITS
|
||||
// CHECK-NEXT: Flags [
|
||||
// CHECK-NEXT: SHF_ALLOC
|
||||
// CHECK-NEXT: SHF_WRITE
|
||||
// CHECK-NEXT: ]
|
||||
// CHECK-NEXT: Address: 0x0
|
||||
// CHECK-NEXT: Offset: 0x40
|
||||
// CHECK-NEXT: Size: 16
|
||||
// CHECK-NEXT: Link: 0
|
||||
// CHECK-NEXT: Info: 0
|
||||
// CHECK-NEXT: AddressAlignment: 16
|
||||
// CHECK-NEXT: EntrySize: 0
|
||||
// CHECK-NEXT: SectionData (
|
Loading…
Reference in New Issue
Block a user