forked from OSchip/llvm-project
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
# RUN: lld-core %s | FileCheck %s
|
|
|
|
#
|
|
# Test addends in references
|
|
#
|
|
|
|
---
|
|
defined-atoms:
|
|
- name: foo
|
|
type: code
|
|
content: [ 48, 8D, 3D, 00, 00, 00, 00,
|
|
48, 8D, 3D, 00, 00, 00, 00 ]
|
|
references:
|
|
- offset: 3
|
|
kind: 3
|
|
target: bar
|
|
addend: 100
|
|
- offset: 10
|
|
kind: 3
|
|
target: bar
|
|
addend: -50
|
|
|
|
- name: func
|
|
type: code
|
|
content: [ 48, 8D, 3D, 00, 00, 00, 00,
|
|
48, 8D, 3D, 00, 00, 00, 00 ]
|
|
references:
|
|
- offset: 3
|
|
kind: 3
|
|
target: bar
|
|
addend: 8000000000
|
|
- offset: 10
|
|
kind: 3
|
|
target: bar
|
|
addend: -50
|
|
|
|
undefined-atoms:
|
|
- name: bar
|
|
|
|
|
|
...
|
|
|
|
# CHECK: name: foo
|
|
# CHECK: references:
|
|
# CHECK: addend: 100
|
|
# CHECK: addend: -50
|
|
# CHECK: name: func
|
|
# CHECK: references:
|
|
# CHECK: addend: 8000000000
|
|
# CHECK: addend: -50
|