1 // RUN
: llvm-mc
-filetype
=obj
-triple x86_64-pc-linux
%s
-o
- | llvm-readobj
-r | FileCheck
%s
3 // these should produce R_X86_64_REX_GOTPCRELX
5 movq mov@GOTPCREL
(%rip
), %rax
6 test
%rax
, test@GOTPCREL
(%rip
)
7 adc adc@GOTPCREL
(%rip
), %rax
8 add add@GOTPCREL
(%rip
), %rax
9 and and@GOTPCREL
(%rip
), %rax
10 cmp cmp@GOTPCREL
(%rip
), %rax
11 or or@GOTPCREL
(%rip
), %rax
12 sbb sbb@GOTPCREL
(%rip
), %rax
13 sub sub@GOTPCREL
(%rip
), %rax
14 xor xor@GOTPCREL
(%rip
), %rax
16 // CHECK
: Relocations
[
17 // CHECK-NEXT
: Section
({{.*}}) .rela.text {
18 // CHECK-NEXT
: R_X86_64_REX_GOTPCRELX mov
19 // CHECK-NEXT
: R_X86_64_REX_GOTPCRELX test
20 // CHECK-NEXT
: R_X86_64_REX_GOTPCRELX adc
21 // CHECK-NEXT
: R_X86_64_REX_GOTPCRELX
add
22 // CHECK-NEXT
: R_X86_64_REX_GOTPCRELX
and
23 // CHECK-NEXT
: R_X86_64_REX_GOTPCRELX
cmp
24 // CHECK-NEXT
: R_X86_64_REX_GOTPCRELX
or
25 // CHECK-NEXT
: R_X86_64_REX_GOTPCRELX sbb
26 // CHECK-NEXT
: R_X86_64_REX_GOTPCRELX
sub
27 // CHECK-NEXT
: R_X86_64_REX_GOTPCRELX
xor