1 // COFF Image-relative relocations
3 // Test that we produce image-relative relocations (IMAGE_REL_I386_DIR32NB
4 // and IMAGE_REL_AMD64_ADDR32NB) when accessing foo@imgrel.
6 // RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -r | FileCheck --check-prefix=W32 %s
7 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -r | FileCheck --check-prefix=W64 %s
14 mov foo@IMGREL(%ebx, %ecx, 4), %eax
15 mov foo@imgrel(%ebx, %ecx, 4), %eax
18 // W32-NEXT: Section (1) .text {
19 // W32-NEXT: 0x3 IMAGE_REL_I386_DIR32NB foo
20 // W32-NEXT: 0xA IMAGE_REL_I386_DIR32NB foo
25 // W64-NEXT: Section (1) .text {
26 // W64-NEXT: 0x4 IMAGE_REL_AMD64_ADDR32NB foo
27 // W64-NEXT: 0xC IMAGE_REL_AMD64_ADDR32NB foo