[SLP]Reduce number of alternate instruction, where possible
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / x86-64 / ELF_R_X86_64_GOTPC32.s
blob241bbb7b851870dfb57f6caf043078465ef711aa
1 # RUN: llvm-mc -triple=x86_64-unknown-linux -position-independent \
2 # RUN: -filetype=obj -o %t.o %s
3 # RUN: llvm-jitlink -noexec -check=%s %t.o
5 # jitlink-check: decode_operand(main, 4) = _GLOBAL_OFFSET_TABLE_ - next_pc(main)
7 .text
8 .section .text.main,"ax",@progbits
9 .globl main
10 .p2align 4, 0x90
11 .type main,@function
12 main:
13 leal _GLOBAL_OFFSET_TABLE_(%rip), %ebx
14 xorl %eax, %eax
15 retq
16 .Lfunc_end0:
17 .size main, .Lfunc_end0-main