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
4 .section __TEXT,__text,regular,pure_instructions
14 # rtdyld-check: decode_operand(insn1, 0) = foo - next_pc(insn1)
19 # rtdyld-check: decode_operand(insn2, 4) = x - next_pc(insn2)
23 # Test PC-rel GOT relocation.
24 # Verify both the contents of the GOT entry for y, and that the movq instruction
25 # references the correct GOT entry address:
26 # rtdyld-check: *{8}(stub_addr(test_x86-64.o, __text, y)) = y
27 # rtdyld-check: decode_operand(insn3, 4) = stub_addr(test_x86-64.o, __text, y) - next_pc(insn3)
29 movq y@GOTPCREL(%rip), %rax
34 # Test processing of the __eh_frame section.
35 # rtdyld-check: *{8}(section_addr(test_x86-64.o, __eh_frame) + 0x20) = eh_frame_test - (section_addr(test_x86-64.o, __eh_frame) + 0x20)
43 .section __DATA,__data
49 .subsections_via_symbols