2 # RUN: llvm-mc %s -filetype=obj -o %t.obj -triple=x86_64-windows-msvc
3 # RUN: lld-link /entry:main /out:%t.exe /LARGEADDRESSAWARE:NO %t.obj
4 # RUN: llvm-readobj --coff-basereloc %t.exe | FileCheck %s --check-prefix=CHECKPASS
6 # This test case checks that the "ADDR32" relocation symbol is collected
7 # when linking a 64bit executable, and the output contains the HIGHLOW
10 # Check that the HIGHLOW relocation base type is in the generated executable
11 # CHECKPASS: Format: COFF-x86-64
12 # CHECKPASS: Arch: x86_64
13 # CHECKPASS: AddressSize: 64bit
14 # CHECKPASS: BaseReloc
16 # CHECKPASS-NEXT: Type: HIGHLOW
23 .intel_syntax noprefix
30 mov dword ptr
[rip
+ arr
+ 24], 7
34 mov eax
, dword ptr
[rcx
+ 4 * rax
+ arr
]