1# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+fp64 | \ 2# RUN: FileCheck %s -check-prefix=CHECK-ASM 3# 4# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+fp64 -filetype=obj -o - | \ 5# RUN: llvm-readobj -sections -section-data -section-relocations - | \ 6# RUN: FileCheck %s -check-prefix=CHECK-OBJ-ALL -check-prefix=CHECK-OBJ-O32 7# 8# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -mattr=-n64,+n32 | \ 9# RUN: FileCheck %s -check-prefix=CHECK-ASM 10# 11# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -mattr=-n64,+n32 -filetype=obj -o - | \ 12# RUN: llvm-readobj -sections -section-data -section-relocations - | \ 13# RUN: FileCheck %s -check-prefix=CHECK-OBJ-ALL -check-prefix=CHECK-OBJ-N32 14 15# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 | \ 16# RUN: FileCheck %s -check-prefix=CHECK-ASM 17# 18# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -filetype=obj -o - | \ 19# RUN: llvm-readobj -sections -section-data -section-relocations - | \ 20# RUN: FileCheck %s -check-prefix=CHECK-OBJ-ALL -check-prefix=CHECK-OBJ-N64 21 22# CHECK-ASM: .module oddspreg 23 24# Checking if the Mips.abiflags were correctly emitted. 25# CHECK-OBJ-ALL: Section { 26# CHECK-OBJ-ALL: Index: 5 27# CHECK-OBJ-ALL: Name: .MIPS.abiflags ({{[0-9]+}}) 28# CHECK-OBJ-ALL: Type: (0x7000002A) 29# CHECK-OBJ-ALL: Flags [ (0x2) 30# CHECK-OBJ-ALL: SHF_ALLOC (0x2) 31# CHECK-OBJ-ALL: ] 32# CHECK-OBJ-ALL: Address: 0x0 33# CHECK-OBJ-ALL: Offset: 0x{{[0-9A-F]+}} 34# CHECK-OBJ-ALL: Size: 24 35# CHECK-OBJ-ALL: Link: 0 36# CHECK-OBJ-ALL: Info: 0 37# CHECK-OBJ-ALL: AddressAlignment: 8 38# CHECK-OBJ-ALL: EntrySize: 0 39# CHECK-OBJ-ALL: Relocations [ 40# CHECK-OBJ-ALL: ] 41# CHECK-OBJ-ALL: SectionData ( 42# CHECK-OBJ-O32: 0000: 00002001 01020006 00000000 00000000 |.. .............| 43# CHECK-OBJ-O32: 0010: 00000001 00000000 |........| 44# CHECK-OBJ-N32: 0000: 00004001 02020001 00000000 00000000 |..@.............| 45# CHECK-OBJ-N32: 0010: 00000001 00000000 |........| 46# CHECK-OBJ-N64: 0000: 00004001 02020001 00000000 00000000 |..@.............| 47# CHECK-OBJ-N64: 0010: 00000001 00000000 |........| 48# CHECK-OBJ-ALL: ) 49# CHECK-OBJ-ALL: } 50 51 .module oddspreg 52 add.s $f3, $f1, $f5 53 54# FIXME: Test should include gnu_attributes directive when implemented. 55# An explicit .gnu_attribute must be checked against the effective 56# command line options and any inconsistencies reported via a warning. 57