1# REQUIRES: mips 2# Check MIPS .reginfo section generation. 3 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 9 10 .text 11 .globl __start 12__start: 13 lw $t0,%call16(g1)($gp) 14 15# CHECK: Name: _gp 16# CHECK-NEXT: Value: 0x[[GP:[0-9A-F]+]] 17 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: } 26