1c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa | \ 2c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# RUN: FileCheck %s -check-prefix=CHECK-ASM 3c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# 4c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -filetype=obj -o - | \ 5c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# RUN: llvm-readobj -sections -section-data -section-relocations - | \ 6c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# RUN: FileCheck %s -check-prefix=CHECK-OBJ 7c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines 8c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# CHECK-ASM: .module fp=32 9c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# CHECK-ASM: .set fp=64 10c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines 11c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# Checking if the Mips.abiflags were correctly emitted. 1237ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: Section { 1337ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: Index: 5 1437ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ-LABEL: Name: .MIPS.abiflags (12) 1537ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: Type: SHT_MIPS_ABIFLAGS (0x7000002A) 1637ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: Flags [ (0x2) 1737ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: SHF_ALLOC (0x2) 1837ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: ] 1937ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: Address: 0x0 2037ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: Size: 24 2137ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: Link: 0 2237ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: Info: 0 2337ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: AddressAlignment: 8 2437ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: EntrySize: 24 2537ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: Relocations [ 2637ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: ] 2737ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: SectionData ( 2837ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: 0000: 00002002 01030001 00000000 00000200 |.. .............| 2937ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: 0010: 00000001 00000000 |........| 3037ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ: ) 3137ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines# CHECK-OBJ-LABEL: } 32c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines 33c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines .module fp=32 34c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines .set fp=64 35c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# FIXME: Test should include gnu_attributes directive when implemented. 36c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# An explicit .gnu_attribute must be checked against the effective 37c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines# command line options and any inconsistencies reported via a warning. 38