brintos

brintos / llvm-project-archived public Read only

0
0
Text · 733 B · c5517c7 Raw
26 lines · plain
1# REQUIRES: mips2# Check MIPS .reginfo section generation.3 4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t1.o5# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \6# RUN:         %S/Inputs/mips-dynamic.s -o %t2.o7# RUN: ld.lld %t1.o %t2.o --gc-sections -shared -o %t.so8# RUN: llvm-readobj --symbols -A %t.so | FileCheck %s9 10  .text11  .globl  __start12__start:13    lw   $t0,%call16(g1)($gp)14 15# CHECK:      Name: _gp16# CHECK-NEXT: Value: 0x[[GP:[0-9A-F]+]]17 18# CHECK:      MIPS RegInfo {19# CHECK-NEXT:   GP: 0x[[GP]]20# CHECK-NEXT:   General Mask: 0x1000010121# CHECK-NEXT:   Co-Proc Mask0: 0x022# CHECK-NEXT:   Co-Proc Mask1: 0x023# CHECK-NEXT:   Co-Proc Mask2: 0x024# CHECK-NEXT:   Co-Proc Mask3: 0x025# CHECK-NEXT: }26