33 lines · plain
1# These *MUST* match the output of gas compiled with the same triple and2# corresponding options (-mabi=64 -> -mattr=+n64 for example).3 4# RUN: llvm-mc -filetype=obj -triple=mips64el-linux -target-abi n64 %s -o - \5# RUN: | llvm-readobj -S - | FileCheck --check-prefix=CHECK_64 %s6# RUN: llvm-mc -filetype=obj -triple=mipsel %s -target-abi n32 -o - \7# RUN: | llvm-readobj -S - | FileCheck --check-prefix=CHECK_32 %s8 9# Check for register information sections.10#11 12# Check that the appropriate relocations were created.13 14# check for .MIPS.options15# CHECK_64: Sections [16# CHECK_64: Section {17# CHECK_64-LABEL: Name: .MIPS.options18# CHECK_64-NEXT: Type: SHT_MIPS_OPTIONS19# CHECK_64-NEXT: Flags [ (0x8000002)20# CHECK_64: AddressAlignment: 821# CHECK_64: EntrySize: 122# CHECK_64-LABEL: }23 24# check for .reginfo25# CHECK_32: Sections [26# CHECK_32: Section {27# CHECK_32-LABEL: Name: .reginfo28# CHECK_32-NEXT: Type: SHT_MIPS_REGINFO29# CHECK_32-NEXT: Flags [ (0x2)30# CHECK_32: AddressAlignment: 831# CHECK_32: EntrySize: 2432# CHECK_32-LABEL: }33