mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00:00
Add a test for relocation addend on mips.
An lld test found a bug in a llvm patch I am working on. It is better to have test coverage for that in llvm too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307192 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
045760e434
commit
e0fb952455
21
test/MC/Mips/addend.s
Normal file
21
test/MC/Mips/addend.s
Normal file
@ -0,0 +1,21 @@
|
||||
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux -mcpu=mips32r6 %s -o %t.o
|
||||
# RUN: llvm-readobj -s -section-data %t.o | FileCheck %s
|
||||
|
||||
# CHECK: Name: .text
|
||||
# CHECK-NEXT: Type:
|
||||
# CHECK-NEXT: Flags [
|
||||
# CHECK-NEXT: SHF_ALLOC
|
||||
# CHECK-NEXT: SHF_EXECINSTR
|
||||
# CHECK-NEXT: ]
|
||||
# CHECK-NEXT: Address:
|
||||
# CHECK-NEXT: Offset:
|
||||
# CHECK-NEXT: Size:
|
||||
# CHECK-NEXT: Link:
|
||||
# CHECK-NEXT: Info:
|
||||
# CHECK-NEXT: AddressAlignment:
|
||||
# CHECK-NEXT: EntrySize:
|
||||
# CHECK-NEXT: SectionData (
|
||||
# CHECK-NEXT: 0000: 00000008 |
|
||||
# CHECK-NEXT: )
|
||||
|
||||
.word _foo+8-.
|
Loading…
Reference in New Issue
Block a user