[llvm] r212945 - Revert: [mips] Correct section alignments and EntrySizes for .bss, .text, .data, .reginfo, .MIPS.options, and .MIPS.abiflags
Daniel Sanders
daniel.sanders at imgtec.com
Mon Jul 14 07:43:45 PDT 2014
Author: dsanders
Date: Mon Jul 14 09:43:45 2014
New Revision: 212945
URL: http://llvm.org/viewvc/llvm-project?rev=212945&view=rev
Log:
Revert: [mips] Correct section alignments and EntrySizes for .bss, .text, .data, .reginfo, .MIPS.options, and .MIPS.abiflags
This commit causes multiple lld tests to fail. Reverting while I investigate the issue.
Modified:
llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
llvm/trunk/test/MC/Mips/elf_reginfo.s
llvm/trunk/test/MC/Mips/mips32/abiflags.s
llvm/trunk/test/MC/Mips/mips32r2/abiflags.s
llvm/trunk/test/MC/Mips/mips64/abiflags.s
llvm/trunk/test/MC/Mips/mips64r2/abiflags.s
llvm/trunk/test/MC/Mips/mips_abi_flags_xx.s
llvm/trunk/test/MC/Mips/mips_abi_flags_xx_set.s
llvm/trunk/test/MC/Mips/msa/abiflags.s
llvm/trunk/test/MC/Mips/nooddspreg-cmdarg.s
llvm/trunk/test/MC/Mips/nooddspreg.s
llvm/trunk/test/MC/Mips/oddspreg.s
Modified: llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp Mon Jul 14 09:43:45 2014
@@ -323,30 +323,13 @@ void MipsTargetELFStreamer::finish() {
MCAssembler &MCA = getStreamer().getAssembler();
MCContext &Context = MCA.getContext();
MCStreamer &OS = getStreamer();
- const MCObjectFileInfo &OFI = *Context.getObjectFileInfo();
Triple T(STI.getTargetTriple());
uint64_t Features = STI.getFeatureBits();
- // .bss, .text and .data are always at least 16-byte aligned.
- MCSectionData &TextSectionData =
- MCA.getOrCreateSectionData(*OFI.getTextSection());
- MCSectionData &DataSectionData =
- MCA.getOrCreateSectionData(*OFI.getDataSection());
- MCSectionData &BSSSectionData =
- MCA.getOrCreateSectionData(*OFI.getBSSSection());
-
- TextSectionData.setAlignment(std::max(16u, TextSectionData.getAlignment()));
- DataSectionData.setAlignment(std::max(16u, DataSectionData.getAlignment()));
- BSSSectionData.setAlignment(std::max(16u, BSSSectionData.getAlignment()));
-
if (T.isArch64Bit() && (Features & Mips::FeatureN64)) {
- // The EntrySize value of 1 seems strange since the records are neither
- // 1-byte long nor fixed length but it matches the value GAS emits.
- const MCSectionELF *Sec =
- Context.getELFSection(".MIPS.options", ELF::SHT_MIPS_OPTIONS,
- ELF::SHF_ALLOC | ELF::SHF_MIPS_NOSTRIP,
- SectionKind::getMetadata(), 1, "");
- MCA.getOrCreateSectionData(*Sec).setAlignment(8);
+ const MCSectionELF *Sec = Context.getELFSection(
+ ".MIPS.options", ELF::SHT_MIPS_OPTIONS,
+ ELF::SHF_ALLOC | ELF::SHF_MIPS_NOSTRIP, SectionKind::getMetadata());
OS.SwitchSection(Sec);
OS.EmitIntValue(1, 1); // kind
@@ -363,8 +346,7 @@ void MipsTargetELFStreamer::finish() {
} else {
const MCSectionELF *Sec =
Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO, ELF::SHF_ALLOC,
- SectionKind::getMetadata(), 24, "");
- MCA.getOrCreateSectionData(*Sec).setAlignment(4);
+ SectionKind::getMetadata());
OS.SwitchSection(Sec);
OS.EmitIntValue(0, 4); // ri_gprmask
@@ -656,7 +638,7 @@ void MipsTargetELFStreamer::emitMipsAbiF
MCStreamer &OS = getStreamer();
const MCSectionELF *Sec =
Context.getELFSection(".MIPS.abiflags", ELF::SHT_MIPS_ABIFLAGS,
- ELF::SHF_ALLOC, SectionKind::getMetadata(), 24, "");
+ ELF::SHF_ALLOC, SectionKind::getMetadata());
MCSectionData &ABIShndxSD = MCA.getOrCreateSectionData(*Sec);
ABIShndxSD.setAlignment(8);
OS.SwitchSection(Sec);
Modified: llvm/trunk/test/MC/Mips/elf_reginfo.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/elf_reginfo.s?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/elf_reginfo.s (original)
+++ llvm/trunk/test/MC/Mips/elf_reginfo.s Mon Jul 14 09:43:45 2014
@@ -14,19 +14,13 @@
# check for .MIPS.options
# CHECK_64: Sections [
# CHECK_64: Section {
-# CHECK_64-LABEL: Name: .MIPS.options
+# CHECK_64: Name: .MIPS.options
# CHECK_64-NEXT: Type: SHT_MIPS_OPTIONS
# CHECK_64-NEXT: Flags [ (0x8000002)
-# CHECK_64: AddressAlignment: 8
-# CHECK_64: EntrySize: 1
-# CHECK_64-LABEL: }
# check for .reginfo
# CHECK_32: Sections [
# CHECK_32: Section {
-# CHECK_32-LABEL: Name: .reginfo
+# CHECK_32: Name: .reginfo
# CHECK_32-NEXT: Type: SHT_MIPS_REGINFO
# CHECK_32-NEXT: Flags [ (0x2)
-# CHECK_32: AddressAlignment: 4
-# CHECK_32: EntrySize: 24
-# CHECK_32-LABEL: }
Modified: llvm/trunk/test/MC/Mips/mips32/abiflags.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/mips32/abiflags.s?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/mips32/abiflags.s (original)
+++ llvm/trunk/test/MC/Mips/mips32/abiflags.s Mon Jul 14 09:43:45 2014
@@ -8,26 +8,27 @@
# CHECK-ASM: .module fp=32
# Checking if the Mips.abiflags were correctly emitted.
-# CHECK-OBJ: Section {
-# CHECK-OBJ: Index: 5
-# CHECK-OBJ-LABEL: Name: .MIPS.abiflags (12)
-# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
-# CHECK-OBJ: Flags [ (0x2)
-# CHECK-OBJ: SHF_ALLOC (0x2)
-# CHECK-OBJ: ]
-# CHECK-OBJ: Address: 0x0
-# CHECK-OBJ: Size: 24
-# CHECK-OBJ: Link: 0
-# CHECK-OBJ: Info: 0
-# CHECK-OBJ: AddressAlignment: 8
-# CHECK-OBJ: EntrySize: 24
-# CHECK-OBJ: Relocations [
-# CHECK-OBJ: ]
-# CHECK-OBJ: SectionData (
-# CHECK-OBJ: 0000: 00002001 01010001 00000000 00000000 |.. .............|
-# CHECK-OBJ: 0010: 00000001 00000000 |........|
-# CHECK-OBJ: )
-# CHECK-OBJ-LABEL: }
+# CHECK-OBJ: Section {
+# CHECK-OBJ: Index: 5
+# CHECK-OBJ: Name: .MIPS.abiflags (12)
+# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
+# CHECK-OBJ: Flags [ (0x2)
+# CHECK-OBJ: SHF_ALLOC (0x2)
+# CHECK-OBJ: ]
+# CHECK-OBJ: Address: 0x0
+# CHECK-OBJ: Offset: 0x50
+# CHECK-OBJ: Size: 24
+# CHECK-OBJ: Link: 0
+# CHECK-OBJ: Info: 0
+# CHECK-OBJ: AddressAlignment: 8
+# CHECK-OBJ: EntrySize: 0
+# CHECK-OBJ: Relocations [
+# CHECK-OBJ: ]
+# CHECK-OBJ: SectionData (
+# CHECK-OBJ: 0000: 00002001 01010001 00000000 00000000 |.. .............|
+# CHECK-OBJ: 0010: 00000001 00000000 |........|
+# CHECK-OBJ: )
+# CHECK-OBJ: }
.module fp=32
Modified: llvm/trunk/test/MC/Mips/mips32r2/abiflags.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/mips32r2/abiflags.s?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/mips32r2/abiflags.s (original)
+++ llvm/trunk/test/MC/Mips/mips32r2/abiflags.s Mon Jul 14 09:43:45 2014
@@ -9,26 +9,27 @@
# CHECK-ASM: .set fp=64
# Checking if the Mips.abiflags were correctly emitted.
-# CHECK-OBJ: Section {
-# CHECK-OBJ: Index: 5
-# CHECK-OBJ-LABEL: Name: .MIPS.abiflags (12)
-# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
-# CHECK-OBJ: Flags [ (0x2)
-# CHECK-OBJ: SHF_ALLOC (0x2)
-# CHECK-OBJ: ]
-# CHECK-OBJ: Address: 0x0
-# CHECK-OBJ: Size: 24
-# CHECK-OBJ: Link: 0
-# CHECK-OBJ: Info: 0
-# CHECK-OBJ: AddressAlignment: 8
-# CHECK-OBJ: EntrySize: 24
-# CHECK-OBJ: Relocations [
-# CHECK-OBJ: ]
-# CHECK-OBJ: SectionData (
-# CHECK-OBJ: 0000: 00002002 01010001 00000000 00000000 |.. .............|
-# CHECK-OBJ: 0010: 00000001 00000000 |........|
-# CHECK-OBJ: )
-# CHECK-OBJ-LABEL: }
+# CHECK-OBJ: Section {
+# CHECK-OBJ: Index: 5
+# CHECK-OBJ: Name: .MIPS.abiflags (12)
+# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
+# CHECK-OBJ: Flags [ (0x2)
+# CHECK-OBJ: SHF_ALLOC (0x2)
+# CHECK-OBJ: ]
+# CHECK-OBJ: Address: 0x0
+# CHECK-OBJ: Offset: 0x50
+# CHECK-OBJ: Size: 24
+# CHECK-OBJ: Link: 0
+# CHECK-OBJ: Info: 0
+# CHECK-OBJ: AddressAlignment: 8
+# CHECK-OBJ: EntrySize: 0
+# CHECK-OBJ: Relocations [
+# CHECK-OBJ: ]
+# CHECK-OBJ: SectionData (
+# CHECK-OBJ: 0000: 00002002 01010001 00000000 00000000 |.. .............|
+# CHECK-OBJ: 0010: 00000001 00000000 |........|
+# CHECK-OBJ: )
+# CHECK-OBJ: }
.module fp=32
.set fp=64
Modified: llvm/trunk/test/MC/Mips/mips64/abiflags.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/mips64/abiflags.s?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/mips64/abiflags.s (original)
+++ llvm/trunk/test/MC/Mips/mips64/abiflags.s Mon Jul 14 09:43:45 2014
@@ -8,26 +8,27 @@
# CHECK-ASM: .module fp=64
# Checking if the Mips.abiflags were correctly emitted.
-# CHECK-OBJ: Section {
-# CHECK-OBJ: Index: 5
-# CHECK-OBJ-LABEL: Name: .MIPS.abiflags (12)
-# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
-# CHECK-OBJ: Flags [ (0x2)
-# CHECK-OBJ: SHF_ALLOC (0x2)
-# CHECK-OBJ: ]
-# CHECK-OBJ: Address: 0x0
-# CHECK-OBJ: Size: 24
-# CHECK-OBJ: Link: 0
-# CHECK-OBJ: Info: 0
-# CHECK-OBJ: AddressAlignment: 8
-# CHECK-OBJ: EntrySize: 24
-# CHECK-OBJ: Relocations [
-# CHECK-OBJ: ]
-# CHECK-OBJ: SectionData (
-# CHECK-OBJ: 0000: 00004001 02020001 00000000 00000000 |.. at .............|
-# CHECK-OBJ: 0010: 00000001 00000000 |........|
-# CHECK-OBJ: )
-# CHECK-OBJ-LABEL: }
+# CHECK-OBJ: Section {
+# CHECK-OBJ: Index: 5
+# CHECK-OBJ: Name: .MIPS.abiflags (12)
+# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
+# CHECK-OBJ: Flags [ (0x2)
+# CHECK-OBJ: SHF_ALLOC (0x2)
+# CHECK-OBJ: ]
+# CHECK-OBJ: Address: 0x0
+# CHECK-OBJ: Offset: 0x50
+# CHECK-OBJ: Size: 24
+# CHECK-OBJ: Link: 0
+# CHECK-OBJ: Info: 0
+# CHECK-OBJ: AddressAlignment: 8
+# CHECK-OBJ: EntrySize: 0
+# CHECK-OBJ: Relocations [
+# CHECK-OBJ: ]
+# CHECK-OBJ: SectionData (
+# CHECK-OBJ: 0000: 00004001 02020001 00000000 00000000 |.. at .............|
+# CHECK-OBJ: 0010: 00000001 00000000 |........|
+# CHECK-OBJ: )
+# CHECK-OBJ: }
.module fp=64
Modified: llvm/trunk/test/MC/Mips/mips64r2/abiflags.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/mips64r2/abiflags.s?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/mips64r2/abiflags.s (original)
+++ llvm/trunk/test/MC/Mips/mips64r2/abiflags.s Mon Jul 14 09:43:45 2014
@@ -8,26 +8,27 @@
# CHECK-ASM: .module fp=64
# Checking if the Mips.abiflags were correctly emitted.
-# CHECK-OBJ: Section {
-# CHECK-OBJ: Index: 5
-# CHECK-OBJ-LABEL: Name: .MIPS.abiflags (12)
-# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
-# CHECK-OBJ: Flags [ (0x2)
-# CHECK-OBJ: SHF_ALLOC (0x2)
-# CHECK-OBJ: ]
-# CHECK-OBJ: Address: 0x0
-# CHECK-OBJ: Size: 24
-# CHECK-OBJ: Link: 0
-# CHECK-OBJ: Info: 0
-# CHECK-OBJ: AddressAlignment: 8
-# CHECK-OBJ: EntrySize: 24
-# CHECK-OBJ: Relocations [
-# CHECK-OBJ: ]
-# CHECK-OBJ: SectionData (
-# CHECK-OBJ: 0000: 00004002 02020001 00000000 00000000 |.. at .............|
-# CHECK-OBJ: 0010: 00000001 00000000 |........|
-# CHECK-OBJ: )
-# CHECK-OBJ-LABEL: }
+# CHECK-OBJ: Section {
+# CHECK-OBJ: Index: 5
+# CHECK-OBJ: Name: .MIPS.abiflags (12)
+# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
+# CHECK-OBJ: Flags [ (0x2)
+# CHECK-OBJ: SHF_ALLOC (0x2)
+# CHECK-OBJ: ]
+# CHECK-OBJ: Address: 0x0
+# CHECK-OBJ: Offset: 0x50
+# CHECK-OBJ: Size: 24
+# CHECK-OBJ: Link: 0
+# CHECK-OBJ: Info: 0
+# CHECK-OBJ: AddressAlignment: 8
+# CHECK-OBJ: EntrySize: 0
+# CHECK-OBJ: Relocations [
+# CHECK-OBJ: ]
+# CHECK-OBJ: SectionData (
+# CHECK-OBJ: 0000: 00004002 02020001 00000000 00000000 |.. at .............|
+# CHECK-OBJ: 0010: 00000001 00000000 |........|
+# CHECK-OBJ: )
+# CHECK-OBJ: }
.module fp=64
Modified: llvm/trunk/test/MC/Mips/mips_abi_flags_xx.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/mips_abi_flags_xx.s?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/mips_abi_flags_xx.s (original)
+++ llvm/trunk/test/MC/Mips/mips_abi_flags_xx.s Mon Jul 14 09:43:45 2014
@@ -8,26 +8,27 @@
# CHECK-ASM: .module fp=xx
# Checking if the Mips.abiflags were correctly emitted.
-# CHECK-OBJ: Section {
-# CHECK-OBJ: Index: 5
-# CHECK-OBJ-LABEL: Name: .MIPS.abiflags (12)
-# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
-# CHECK-OBJ: Flags [ (0x2)
-# CHECK-OBJ: SHF_ALLOC (0x2)
-# CHECK-OBJ: ]
-# CHECK-OBJ: Address: 0x0
-# CHECK-OBJ: Size: 24
-# CHECK-OBJ: Link: 0
-# CHECK-OBJ: Info: 0
-# CHECK-OBJ: AddressAlignment: 8
-# CHECK-OBJ: EntrySize: 24
-# CHECK-OBJ: Relocations [
-# CHECK-OBJ: ]
-# CHECK-OBJ: SectionData (
-# CHECK-OBJ: 0000: 00002001 01010005 00000000 00000000 |.. .............|
-# CHECK-OBJ: 0010: 00000001 00000000 |........|
-# CHECK-OBJ: )
-# CHECK-OBJ-LABEL: }
+# CHECK-OBJ: Section {
+# CHECK-OBJ: Index: 5
+# CHECK-OBJ: Name: .MIPS.abiflags (12)
+# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
+# CHECK-OBJ: Flags [ (0x2)
+# CHECK-OBJ: SHF_ALLOC (0x2)
+# CHECK-OBJ: ]
+# CHECK-OBJ: Address: 0x0
+# CHECK-OBJ: Offset: 0x50
+# CHECK-OBJ: Size: 24
+# CHECK-OBJ: Link: 0
+# CHECK-OBJ: Info: 0
+# CHECK-OBJ: AddressAlignment: 8
+# CHECK-OBJ: EntrySize: 0
+# CHECK-OBJ: Relocations [
+# CHECK-OBJ: ]
+# CHECK-OBJ: SectionData (
+# CHECK-OBJ: 0000: 00002001 01010005 00000000 00000000 |.. .............|
+# CHECK-OBJ: 0010: 00000001 00000000 |........|
+# CHECK-OBJ: )
+# CHECK-OBJ: }
.module fp=xx
Modified: llvm/trunk/test/MC/Mips/mips_abi_flags_xx_set.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/mips_abi_flags_xx_set.s?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/mips_abi_flags_xx_set.s (original)
+++ llvm/trunk/test/MC/Mips/mips_abi_flags_xx_set.s Mon Jul 14 09:43:45 2014
@@ -9,26 +9,27 @@
# CHECK-ASM: .set fp=64
# Checking if the Mips.abiflags were correctly emitted.
-# CHECK-OBJ: Section {
-# CHECK-OBJ: Index: 5
-# CHECK-OBJ-LABEL: Name: .MIPS.abiflags (12)
-# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
-# CHECK-OBJ: Flags [ (0x2)
-# CHECK-OBJ: SHF_ALLOC (0x2)
-# CHECK-OBJ: ]
-# CHECK-OBJ: Address: 0x0
-# CHECK-OBJ: Size: 24
-# CHECK-OBJ: Link: 0
-# CHECK-OBJ: Info: 0
-# CHECK-OBJ: AddressAlignment: 8
-# CHECK-OBJ: EntrySize: 24
-# CHECK-OBJ: Relocations [
-# CHECK-OBJ: ]
-# CHECK-OBJ: SectionData (
-# CHECK-OBJ: 0000: 00002001 01010005 00000000 00000000 |.. .............|
-# CHECK-OBJ: 0010: 00000001 00000000 |........|
-# CHECK-OBJ: )
-# CHECK-OBJ-LABEL: }
+# CHECK-OBJ: Section {
+# CHECK-OBJ: Index: 5
+# CHECK-OBJ: Name: .MIPS.abiflags (12)
+# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
+# CHECK-OBJ: Flags [ (0x2)
+# CHECK-OBJ: SHF_ALLOC (0x2)
+# CHECK-OBJ: ]
+# CHECK-OBJ: Address: 0x0
+# CHECK-OBJ: Offset: 0x50
+# CHECK-OBJ: Size: 24
+# CHECK-OBJ: Link: 0
+# CHECK-OBJ: Info: 0
+# CHECK-OBJ: AddressAlignment: 8
+# CHECK-OBJ: EntrySize: 0
+# CHECK-OBJ: Relocations [
+# CHECK-OBJ: ]
+# CHECK-OBJ: SectionData (
+# CHECK-OBJ: 0000: 00002001 01010005 00000000 00000000 |.. .............|
+# CHECK-OBJ: 0010: 00000001 00000000 |........|
+# CHECK-OBJ: )
+# CHECK-OBJ: }
.module fp=xx
.set fp=64
Modified: llvm/trunk/test/MC/Mips/msa/abiflags.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/msa/abiflags.s?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/msa/abiflags.s (original)
+++ llvm/trunk/test/MC/Mips/msa/abiflags.s Mon Jul 14 09:43:45 2014
@@ -9,26 +9,27 @@
# CHECK-ASM: .set fp=64
# Checking if the Mips.abiflags were correctly emitted.
-# CHECK-OBJ: Section {
-# CHECK-OBJ: Index: 5
-# CHECK-OBJ-LABEL: Name: .MIPS.abiflags (12)
-# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
-# CHECK-OBJ: Flags [ (0x2)
-# CHECK-OBJ: SHF_ALLOC (0x2)
-# CHECK-OBJ: ]
-# CHECK-OBJ: Address: 0x0
-# CHECK-OBJ: Size: 24
-# CHECK-OBJ: Link: 0
-# CHECK-OBJ: Info: 0
-# CHECK-OBJ: AddressAlignment: 8
-# CHECK-OBJ: EntrySize: 24
-# CHECK-OBJ: Relocations [
-# CHECK-OBJ: ]
-# CHECK-OBJ: SectionData (
-# CHECK-OBJ: 0000: 00002002 01030001 00000000 00000200 |.. .............|
-# CHECK-OBJ: 0010: 00000001 00000000 |........|
-# CHECK-OBJ: )
-# CHECK-OBJ-LABEL: }
+# CHECK-OBJ: Section {
+# CHECK-OBJ: Index: 5
+# CHECK-OBJ: Name: .MIPS.abiflags (12)
+# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
+# CHECK-OBJ: Flags [ (0x2)
+# CHECK-OBJ: SHF_ALLOC (0x2)
+# CHECK-OBJ: ]
+# CHECK-OBJ: Address: 0x0
+# CHECK-OBJ: Offset: 0x50
+# CHECK-OBJ: Size: 24
+# CHECK-OBJ: Link: 0
+# CHECK-OBJ: Info: 0
+# CHECK-OBJ: AddressAlignment: 8
+# CHECK-OBJ: EntrySize: 0
+# CHECK-OBJ: Relocations [
+# CHECK-OBJ: ]
+# CHECK-OBJ: SectionData (
+# CHECK-OBJ: 0000: 00002002 01030001 00000000 00000200 |.. .............|
+# CHECK-OBJ: 0010: 00000001 00000000 |........|
+# CHECK-OBJ: )
+# CHECK-OBJ: }
.module fp=32
.set fp=64
Modified: llvm/trunk/test/MC/Mips/nooddspreg-cmdarg.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/nooddspreg-cmdarg.s?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/nooddspreg-cmdarg.s (original)
+++ llvm/trunk/test/MC/Mips/nooddspreg-cmdarg.s Mon Jul 14 09:43:45 2014
@@ -14,26 +14,27 @@
# CHECK-ASM-NOT: .module nooddspreg
# Checking if the Mips.abiflags were correctly emitted.
-# CHECK-OBJ: Section {
-# CHECK-OBJ: Index: 5
-# CHECK-OBJ-LABEL: Name: .MIPS.abiflags (12)
-# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
-# CHECK-OBJ: Flags [ (0x2)
-# CHECK-OBJ: SHF_ALLOC (0x2)
-# CHECK-OBJ: ]
-# CHECK-OBJ: Address: 0x0
-# CHECK-OBJ: Size: 24
-# CHECK-OBJ: Link: 0
-# CHECK-OBJ: Info: 0
-# CHECK-OBJ: AddressAlignment: 8
-# CHECK-OBJ: EntrySize: 24
-# CHECK-OBJ: Relocations [
-# CHECK-OBJ: ]
-# CHECK-OBJ: SectionData (
-# CHECK-OBJ: 0000: 00002001 01020007 00000000 00000000 |.. .............|
-# CHECK-OBJ: 0010: 00000000 00000000 |........|
-# CHECK-OBJ: )
-# CHECK-OBJ-LABEL: }
+# CHECK-OBJ: Section {
+# CHECK-OBJ: Index: 5
+# CHECK-OBJ: Name: .MIPS.abiflags (12)
+# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
+# CHECK-OBJ: Flags [ (0x2)
+# CHECK-OBJ: SHF_ALLOC (0x2)
+# CHECK-OBJ: ]
+# CHECK-OBJ: Address: 0x0
+# CHECK-OBJ: Offset: 0x50
+# CHECK-OBJ: Size: 24
+# CHECK-OBJ: Link: 0
+# CHECK-OBJ: Info: 0
+# CHECK-OBJ: AddressAlignment: 8
+# CHECK-OBJ: EntrySize: 0
+# CHECK-OBJ: Relocations [
+# CHECK-OBJ: ]
+# CHECK-OBJ: SectionData (
+# CHECK-OBJ: 0000: 00002001 01020007 00000000 00000000 |.. .............|
+# CHECK-OBJ: 0010: 00000000 00000000 |........|
+# CHECK-OBJ: )
+# CHECK-OBJ: }
# INVALID: ERROR: -mno-odd-spreg requires the O32 ABI
Modified: llvm/trunk/test/MC/Mips/nooddspreg.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/nooddspreg.s?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/nooddspreg.s (original)
+++ llvm/trunk/test/MC/Mips/nooddspreg.s Mon Jul 14 09:43:45 2014
@@ -14,26 +14,27 @@
# CHECK-ASM: .module nooddspreg
# Checking if the Mips.abiflags were correctly emitted.
-# CHECK-OBJ: Section {
-# CHECK-OBJ: Index: 5
-# CHECK-OBJ-LABEL: Name: .MIPS.abiflags (12)
-# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
-# CHECK-OBJ: Flags [ (0x2)
-# CHECK-OBJ: SHF_ALLOC (0x2)
-# CHECK-OBJ: ]
-# CHECK-OBJ: Address: 0x0
-# CHECK-OBJ: Size: 24
-# CHECK-OBJ: Link: 0
-# CHECK-OBJ: Info: 0
-# CHECK-OBJ: AddressAlignment: 8
-# CHECK-OBJ: EntrySize: 24
-# CHECK-OBJ: Relocations [
-# CHECK-OBJ: ]
-# CHECK-OBJ: SectionData (
-# CHECK-OBJ: 0000: 00002001 01020007 00000000 00000000 |.. .............|
-# CHECK-OBJ: 0010: 00000000 00000000 |........|
-# CHECK-OBJ: )
-# CHECK-OBJ-LABEL: }
+# CHECK-OBJ: Section {
+# CHECK-OBJ: Index: 5
+# CHECK-OBJ: Name: .MIPS.abiflags (12)
+# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
+# CHECK-OBJ: Flags [ (0x2)
+# CHECK-OBJ: SHF_ALLOC (0x2)
+# CHECK-OBJ: ]
+# CHECK-OBJ: Address: 0x0
+# CHECK-OBJ: Offset: 0x50
+# CHECK-OBJ: Size: 24
+# CHECK-OBJ: Link: 0
+# CHECK-OBJ: Info: 0
+# CHECK-OBJ: AddressAlignment: 8
+# CHECK-OBJ: EntrySize: 0
+# CHECK-OBJ: Relocations [
+# CHECK-OBJ: ]
+# CHECK-OBJ: SectionData (
+# CHECK-OBJ: 0000: 00002001 01020007 00000000 00000000 |.. .............|
+# CHECK-OBJ: 0010: 00000000 00000000 |........|
+# CHECK-OBJ: )
+# CHECK-OBJ: }
# INVALID: '.module nooddspreg' requires the O32 ABI
Modified: llvm/trunk/test/MC/Mips/oddspreg.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/oddspreg.s?rev=212945&r1=212944&r2=212945&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/oddspreg.s (original)
+++ llvm/trunk/test/MC/Mips/oddspreg.s Mon Jul 14 09:43:45 2014
@@ -36,30 +36,31 @@
# CHECK-ASM: .module oddspreg
# Checking if the Mips.abiflags were correctly emitted.
-# CHECK-OBJ-ALL: Section {
-# CHECK-OBJ-ALL: Index: 5
-# CHECK-OBJ-ALL-LABEL: Name: .MIPS.abiflags ({{[0-9]+}})
-# CHECK-OBJ-ALL: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
-# CHECK-OBJ-ALL: Flags [ (0x2)
-# CHECK-OBJ-ALL: SHF_ALLOC (0x2)
-# CHECK-OBJ-ALL: ]
-# CHECK-OBJ-ALL: Address: 0x0
-# CHECK-OBJ-ALL: Size: 24
-# CHECK-OBJ-ALL: Link: 0
-# CHECK-OBJ-ALL: Info: 0
-# CHECK-OBJ-ALL: AddressAlignment: 8
-# CHECK-OBJ-ALL: EntrySize: 24
-# CHECK-OBJ-ALL: Relocations [
-# CHECK-OBJ-ALL: ]
-# CHECK-OBJ-ALL: SectionData (
-# CHECK-OBJ-O32: 0000: 00002001 01020006 00000000 00000000 |.. .............|
-# CHECK-OBJ-O32: 0010: 00000001 00000000 |........|
-# CHECK-OBJ-N32: 0000: 00004001 02020001 00000000 00000000 |.. at .............|
-# CHECK-OBJ-N32: 0010: 00000001 00000000 |........|
-# CHECK-OBJ-N64: 0000: 00004001 02020001 00000000 00000000 |.. at .............|
-# CHECK-OBJ-N64: 0010: 00000001 00000000 |........|
-# CHECK-OBJ-ALL: )
-# CHECK-OBJ-ALL-LABEL: }
+# CHECK-OBJ-ALL: Section {
+# CHECK-OBJ-ALL: Index: 5
+# CHECK-OBJ-ALL: Name: .MIPS.abiflags ({{[0-9]+}})
+# CHECK-OBJ-ALL: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
+# CHECK-OBJ-ALL: Flags [ (0x2)
+# CHECK-OBJ-ALL: SHF_ALLOC (0x2)
+# CHECK-OBJ-ALL: ]
+# CHECK-OBJ-ALL: Address: 0x0
+# CHECK-OBJ-ALL: Offset: 0x{{[0-9A-F]+}}
+# CHECK-OBJ-ALL: Size: 24
+# CHECK-OBJ-ALL: Link: 0
+# CHECK-OBJ-ALL: Info: 0
+# CHECK-OBJ-ALL: AddressAlignment: 8
+# CHECK-OBJ-ALL: EntrySize: 0
+# CHECK-OBJ-ALL: Relocations [
+# CHECK-OBJ-ALL: ]
+# CHECK-OBJ-ALL: SectionData (
+# CHECK-OBJ-O32: 0000: 00002001 01020006 00000000 00000000 |.. .............|
+# CHECK-OBJ-O32: 0010: 00000001 00000000 |........|
+# CHECK-OBJ-N32: 0000: 00004001 02020001 00000000 00000000 |.. at .............|
+# CHECK-OBJ-N32: 0010: 00000001 00000000 |........|
+# CHECK-OBJ-N64: 0000: 00004001 02020001 00000000 00000000 |.. at .............|
+# CHECK-OBJ-N64: 0010: 00000001 00000000 |........|
+# CHECK-OBJ-ALL: )
+# CHECK-OBJ-ALL: }
.module oddspreg
add.s $f3, $f1, $f5
More information about the llvm-commits
mailing list