blob: 8f7e204321864778693041b176f53cd498f51fc9 [file] [log] [blame]
# RUN: rm -rf %t && mkdir -p %t
# RUN: llvm-mc -triple=x86_64-pc-win32 -filetype=obj -o %t/COFF_x86_64_IMGREL.o %s
# RUN: llvm-rtdyld -triple=x86_64-pc-win32 -verify -check=%s %t/COFF_x86_64_IMGREL.o
.text
.def F;
.scl 2;
.type 32;
.endef
.globl __constdata
.section .rdata, "dr", discard, __constdata
.align 8
__constdata:
.quad 0
.text
.globl F
.align 16, 0x90
F: # @F
# rtdyld-check: decode_operand(inst1, 3) = section_addr(COFF_x86_64_IMGREL.o, .text)+0
inst1:
mov %ebx, F@IMGREL
# rtdyld-check: decode_operand(inst2, 3) = section_addr(COFF_x86_64_IMGREL.o, .rdata)+5
inst2:
mov %ebx, (__constdata@imgrel+5)