1 # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -filetype=asm | \
2 # RUN: FileCheck %s -check-prefix=ASMOUT
4 # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -filetype=obj -o - | \
5 # RUN: llvm-readobj -S --section-data -r | \
6 # RUN: FileCheck %s -check-prefix=OBJOUT
9 # ASMOUT: .type _local_foo,@function
10 # ASMOUT: .ent _local_foo
12 # ASMOUT: .frame $fp,16,$ra
13 # ASMOUT: .mask 0x10101010,-4
14 # ASMOUT: .fmask 0x01010101,-8
15 # ASMOUT: .end _local_foo
16 # ASMOUT: .size local_foo,
20 # OBJOUT: Type: SHT_PROGBITS (0x1)
21 # OBJOUT: Flags [ (0x0)
22 # OBJOUT-NOT: SHF_ALLOC (0x2)
23 # OBJOUT-NOT: SHF_WRITE (0x1)
26 # OBJOUT: SectionData (
27 # OBJOUT: 0000: 00000000 10101010 FFFFFFFC 01010101
28 # OBJOUT: 0010: FFFFFFF8 00000010 0000001E 0000001F
29 # OBJOUT: 0020: 00000000 10101010 FFFFFFFC 01010101
30 # OBJOUT: 0030: FFFFFFF8 00000010 0000001E 0000001F
34 # We should also check if relocation information was correctly generated.
35 # OBJOUT: Relocations [
36 # OBJOUT-NEXT: Section ({{.*}}) .rel.pdr {
37 # OBJOUT-NEXT: 0x0 R_MIPS_32 .text 0x0
38 # OBJOUT-NEXT: 0x20 R_MIPS_32 _global_foo 0x0
43 .type _local_foo,@function
50 .size local_foo,.-_local_foo
53 .type _global_foo,@function
60 .size global_foo,.-_global_foo