[RuntimeDyld] Fix MachO i386 SECTDIFF relocation to support non-zero addends.
[oota-llvm.git] / test / ExecutionEngine / RuntimeDyld / X86 / MachO_i386_DynNoPIC_relocations.s
index f427b985b58c336f8efc1bb48fec92e4f9e9a103..6b2fe9532c2f350816f4fa4d13d80cb693852a7c 100644 (file)
@@ -9,9 +9,9 @@ bar:
 tmp0$pb:
        popl    %eax
 # Test section difference relocation to non-lazy ptr section.
-# rtdyld-check: decode_operand(inst1, 4) = x$non_lazy_ptr - tmp0$pb
+# rtdyld-check: decode_operand(inst1, 4) = x$non_lazy_ptr - tmp0$pb + 8
 inst1:
-       movl    x$non_lazy_ptr-tmp0$pb(%eax), %eax
+       movl    (x$non_lazy_ptr-tmp0$pb)+8(%eax), %eax
         movl    (%eax), %ebx
 
 # Test VANILLA relocation to jump table.