forked from OSchip/llvm-project
[Mips] Add checking of .reginfo section options to the test case
llvm-svn: 234114
This commit is contained in:
parent
7527e3f59c
commit
b2d1c0c09c
|
@ -3,14 +3,29 @@
|
|||
# RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o
|
||||
# RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o
|
||||
# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t1.o %t2.o
|
||||
# RUN: llvm-objdump -s -t %t.so | FileCheck %s
|
||||
# RUN: llvm-readobj -s %t.so | FileCheck -check-prefix=SEC %s
|
||||
# RUN: llvm-objdump -s -t %t.so | FileCheck -check-prefix=RAW %s
|
||||
|
||||
# CHECK: Contents of section .reginfo:
|
||||
# CHECK-NEXT: 00b4 f0000001 e0000002 d0000003 c0000004
|
||||
# CHECK-NEXT: 00c4 b0000005 f08f0000
|
||||
# SEC: Index: 1
|
||||
# SEC-NEXT: Name: .reginfo (1)
|
||||
# SEC-NEXT: Type: SHT_MIPS_REGINFO (0x70000006)
|
||||
# SEC-NEXT: Flags [ (0x2)
|
||||
# SEC-NEXT: SHF_ALLOC (0x2)
|
||||
# SEC-NEXT: ]
|
||||
# SEC-NEXT: Address: {{[0-9A-F]+}}
|
||||
# SEC-NEXT: Offset: {{[0-9A-F]+}}
|
||||
# SEC-NEXT: Size: 24
|
||||
# SEC-NEXT: Link: 0
|
||||
# SEC-NEXT: Info: 0
|
||||
# SEC-NEXT: AddressAlignment: 4
|
||||
# SEC-NEXT: EntrySize: 24
|
||||
|
||||
# CHECK: SYMBOL TABLE:
|
||||
# CHECK: 00008ff0 g *ABS* 00000000 _gp
|
||||
# RAW: Contents of section .reginfo:
|
||||
# RAW-NEXT: 00b4 f0000001 e0000002 d0000003 c0000004
|
||||
# RAW-NEXT: 00c4 b0000005 f08f0000
|
||||
|
||||
# RAW: SYMBOL TABLE:
|
||||
# RAW: 00008ff0 g *ABS* 00000000 _gp
|
||||
|
||||
# t1.o
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue