[ELF] Make section member orders consistent
[llvm-project.git] / lld / test / ELF / mips-reginfo.s
blobc5517c7bc09cfd293e38f806d09925b931de48f9
1 # REQUIRES: mips
2 # Check MIPS .reginfo section generation.
4 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t1.o
5 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
6 # RUN: %S/Inputs/mips-dynamic.s -o %t2.o
7 # RUN: ld.lld %t1.o %t2.o --gc-sections -shared -o %t.so
8 # RUN: llvm-readobj --symbols -A %t.so | FileCheck %s
10 .text
11 .globl __start
12 __start:
13 lw $t0,%call16(g1)($gp)
15 # CHECK: Name: _gp
16 # CHECK-NEXT: Value: 0x[[GP:[0-9A-F]+]]
18 # CHECK: MIPS RegInfo {
19 # CHECK-NEXT: GP: 0x[[GP]]
20 # CHECK-NEXT: General Mask: 0x10000101
21 # CHECK-NEXT: Co-Proc Mask0: 0x0
22 # CHECK-NEXT: Co-Proc Mask1: 0x0
23 # CHECK-NEXT: Co-Proc Mask2: 0x0
24 # CHECK-NEXT: Co-Proc Mask3: 0x0
25 # CHECK-NEXT: }