1 # RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -relocation-model=pic -filetype=obj -o %T/foo.o %s
2 # RUN: sed "s,<filename>,%/T/foo.o,g" %s > %T/foo.s
3 # RUN: llvm-rtdyld -triple=x86_64-apple-macosx10.9 -verify -check=%T/foo.s %T/foo.o
5 # FIXME: Fix searching StubMap with '/' and '\\' on Win32.
8 .section __TEXT,__text,regular,pure_instructions
18 # rtdyld-check: decode_operand(insn1, 0) = foo - next_pc(insn1)
23 # rtdyld-check: decode_operand(insn2, 4) = x - next_pc(insn2)
27 # Test PC-rel GOT relocation.
28 # Verify both the contents of the GOT entry for y, and that the movq instruction
29 # references the correct GOT entry address:
30 # rtdyld-check: *{8}(stub_addr(<filename>, __text, y)) = y
31 # rtdyld-check: decode_operand(insn3, 4) = stub_addr(<filename>, __text, y) - next_pc(insn3)
33 movq y@GOTPCREL(%rip), %rax
40 .section __DATA,__data
46 .subsections_via_symbols