hanchenye-llvm-project/lld/test/pecoff/common-symbol.test

13 lines
407 B
Plaintext

# RUN: yaml2obj %p/Inputs/common-symbol.obj.yaml > %t.obj
#
# RUN: lld -flavor link /machine:x64 /out:%t.exe /subsystem:console /force \
# RUN: /opt:noref -- %t.obj %t.obj
# RUN: llvm-objdump -d %t.exe | FileCheck %s
# Operands of B8 (MOV EAX) are common symbols
CHECK: 3000: b8 00 10 00 40
CHECK: 3005: b8 04 10 00 40
CHECK: 300a: b8 20 10 00 40
CHECK: 300f: b8 60 10 00 40
CHECK: 3014: b8 80 10 00 40