1 # RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -relocation-model=pic -filetype=obj -o %T/test_x86-64.o %s
2 # RUN: llvm-rtdyld -triple=x86_64-apple-macosx10.9 -verify -check=%s %/T/test_x86-64.o
5 .section __TEXT,__text,regular,pure_instructions
15 # rtdyld-check: decode_operand(insn1, 0) = foo - next_pc(insn1)
20 # rtdyld-check: decode_operand(insn2, 4) = x - next_pc(insn2)
24 # Test PC-rel GOT relocation.
25 # Verify both the contents of the GOT entry for y, and that the movq instruction
26 # references the correct GOT entry address:
27 # rtdyld-check: *{8}(stub_addr(test_x86-64.o, __text, y)) = y
28 # rtdyld-check: decode_operand(insn3, 4) = stub_addr(test_x86-64.o, __text, y) - next_pc(insn3)
30 movq y@GOTPCREL(%rip), %rax
37 .section __DATA,__data
43 .subsections_via_symbols