37 lines · plain
1# RUN: llvm-mc %s -triple=mips -mcpu=mips64 -target-abi n64 | \2# RUN: FileCheck %s -check-prefix=CHECK-ASM3#4# RUN: llvm-mc %s -triple=mips -mcpu=mips64 -target-abi n64 -filetype=obj -o - | \5# RUN: llvm-readobj --sections --section-data --section-relocations - | \6# RUN: FileCheck %s -check-prefix=CHECK-OBJ7 8# CHECK-ASM: .module fp=649 10# Checking if the Mips.abiflags were correctly emitted.11# CHECK-OBJ: Section {12# CHECK-OBJ: Index: 513# CHECK-OBJ-LABEL: Name: .MIPS.abiflags14# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A)15# CHECK-OBJ: Flags [ (0x2)16# CHECK-OBJ: SHF_ALLOC (0x2)17# CHECK-OBJ: ]18# CHECK-OBJ: Address: 0x019# CHECK-OBJ: Size: 2420# CHECK-OBJ: Link: 021# CHECK-OBJ: Info: 022# CHECK-OBJ: AddressAlignment: 823# CHECK-OBJ: EntrySize: 2424# CHECK-OBJ: Relocations [25# CHECK-OBJ: ]26# CHECK-OBJ: SectionData (27# CHECK-OBJ: 0000: 00004001 02020001 00000000 00000000 |..@.............|28# CHECK-OBJ: 0010: 00000001 00000000 |........|29# CHECK-OBJ: )30# CHECK-OBJ-LABEL: }31 32 .module fp=6433 34# FIXME: Test should include gnu_attributes directive when implemented.35# An explicit .gnu_attribute must be checked against the effective36# command line options and any inconsistencies reported via a warning.37