[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / ExecutionEngine / RuntimeDyld / X86 / ELF_x64-64_PC8_relocations.s
blobb0893912c9c327479dbd02649cc711232aa02d85
1 # RUN: rm -rf %t && mkdir -p %t
2 # RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj -o %t/test_ELF_x86-64_PC8.o %s
3 # RUN: llvm-rtdyld -triple=x86_64-pc-linux -verify -map-section test_ELF_x86-64_PC8.o,.text.bar=0x10000 -map-section test_ELF_x86-64_PC8.o,.text.baz=0x10040 %t/test_ELF_x86-64_PC8.o
4 # RUN: llvm-rtdyld -triple=x86_64-pc-linux -verify -map-section test_ELF_x86-64_PC8.o,.text.baz=0x10000 -map-section test_ELF_x86-64_PC8.o,.text.bar=0x10040 %t/test_ELF_x86-64_PC8.o
6 # Test that R_X86_64_PC8 relocation works.
8 .section .text.bar,"ax"
9 .align 16, 0x90
10 .type bar,@function
11 bar:
12 retq
13 .Ltmp1:
14 .size bar, .Ltmp1-bar
16 .section .text.baz,"ax"
17 .align 16, 0x90
18 .type baz,@function
19 baz:
20 movq %rdi, %rcx
21 jrcxz bar
22 retq
23 .Ltmp2:
24 .size baz, .Ltmp2-baz
27 .section ".note.GNU-stack","",@progbits