1ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# RUN: llvm-mc %s -arch=mips -mcpu=mips64r5 | \ 2ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# RUN: FileCheck %s -check-prefix=CHECK-ASM 3ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# 4ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# RUN: llvm-mc %s -arch=mips -mcpu=mips64r5 -filetype=obj -o - | \ 5ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# RUN: llvm-readobj -sections -section-data -section-relocations - | \ 6ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# RUN: FileCheck %s -check-prefix=CHECK-OBJ 7ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines 8ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-ASM: .module fp=64 9ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines 10ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# Checking if the Mips.abiflags were correctly emitted. 11ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: Section { 12ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: Index: 5 13ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ-LABEL: Name: .MIPS.abiflags 14ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A) 15ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: Flags [ (0x2) 16ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: SHF_ALLOC (0x2) 17ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: ] 18ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: Address: 0x0 19ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: Size: 24 20ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: Link: 0 21ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: Info: 0 22ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: AddressAlignment: 8 23ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: EntrySize: 24 24ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: Relocations [ 25ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: ] 26ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: SectionData ( 27ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: 0000: 00004005 02020001 00000000 00000000 |..@.............| 28ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: 0010: 00000001 00000000 |........| 29ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ: ) 30ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# CHECK-OBJ-LABEL: } 31ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines 32ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines .module fp=64 33ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines 34ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# FIXME: Test should include gnu_attributes directive when implemented. 35ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# An explicit .gnu_attribute must be checked against the effective 36ebe69fe11e48d322045d5949c83283927a0d790bStephen Hines# command line options and any inconsistencies reported via a warning. 37