[RuntimeDyld] Fix MachO i386 SECTDIFF relocation to support non-zero addends.
[oota-llvm.git] / test / ExecutionEngine / RuntimeDyld / X86 / COFF_x86_64
1 # RUN: llvm-mc -triple=x86_64-pc-win32 -filetype=obj -o %T/COFF_x86_64.o %s
2 # RUN: llvm-rtdyld -triple=x86_64-pc-win32 -verify -check=%s %/T/COFF_x86_64.o
3                 .text
4         .def     F;
5         .scl    2;
6         .type   32;
7         .endef
8         .globl  __real400921f9f01b866e
9         .section        .rdata,"dr",discard,__real400921f9f01b866e
10         .align  8
11 __real400921f9f01b866e:
12         .quad   4614256650576692846     # double 3.1415899999999999
13         .text
14         .globl  F
15         .global inst1
16         .align  16, 0x90
17 F:                                      # @F
18 .Ltmp0:
19 .seh_proc F
20 # BB#0:                                 # %entry
21 .Ltmp1:
22         .seh_endprologue
23 # rtdyld-check: decode_operand(inst1, 4) = __real400921f9f01b866e - next_pc(inst1)
24 inst1:
25         movsd   __real400921f9f01b866e(%rip), %xmm0 # xmm0 = mem[0],zero
26         retq
27 .Leh_func_end0:
28 .Ltmp2:
29         .seh_endproc
30
31