[LLD][COFF] Separate EC and native exports for ARM64X (#123652)
[llvm-project.git] / llvm / test / MC / X86 / gotpcrel_norelax.s
blobaaaea7d33b84a4b83d6fa8362375524352c8af8a
1 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
2 # RUN: llvm-readobj -r %t.o | FileCheck %s
4 # CHECK: Relocations [
5 # CHECK-NEXT: Section ({{.*}}) .rela.text {
6 # CHECK-NEXT: R_X86_64_GOTPCREL mov
7 # CHECK-NEXT: R_X86_64_GOTPCREL test
8 # CHECK-NEXT: R_X86_64_GOTPCREL adc
9 # CHECK-NEXT: R_X86_64_GOTPCREL add
10 # CHECK-NEXT: R_X86_64_GOTPCREL and
11 # CHECK-NEXT: R_X86_64_GOTPCREL cmp
12 # CHECK-NEXT: R_X86_64_GOTPCREL or
13 # CHECK-NEXT: R_X86_64_GOTPCREL sbb
14 # CHECK-NEXT: R_X86_64_GOTPCREL sub
15 # CHECK-NEXT: R_X86_64_GOTPCREL xor
16 # CHECK-NEXT: R_X86_64_GOTPCREL call
17 # CHECK-NEXT: R_X86_64_GOTPCREL jmp
18 # CHECK-NEXT: R_X86_64_GOTPCREL mov
19 # CHECK-NEXT: R_X86_64_GOTPCREL test
20 # CHECK-NEXT: R_X86_64_GOTPCREL adc
21 # CHECK-NEXT: R_X86_64_GOTPCREL add
22 # CHECK-NEXT: R_X86_64_GOTPCREL and
23 # CHECK-NEXT: R_X86_64_GOTPCREL cmp
24 # CHECK-NEXT: R_X86_64_GOTPCREL or
25 # CHECK-NEXT: R_X86_64_GOTPCREL sbb
26 # CHECK-NEXT: R_X86_64_GOTPCREL sub
27 # CHECK-NEXT: R_X86_64_GOTPCREL xor
28 # CHECK-NEXT: R_X86_64_GOTPCREL mov
29 # CHECK-NEXT: R_X86_64_GOTPCREL test
30 # CHECK-NEXT: R_X86_64_GOTPCREL adc
31 # CHECK-NEXT: R_X86_64_GOTPCREL add
32 # CHECK-NEXT: R_X86_64_GOTPCREL and
33 # CHECK-NEXT: R_X86_64_GOTPCREL cmp
34 # CHECK-NEXT: R_X86_64_GOTPCREL or
35 # CHECK-NEXT: R_X86_64_GOTPCREL sbb
36 # CHECK-NEXT: R_X86_64_GOTPCREL sub
37 # CHECK-NEXT: R_X86_64_GOTPCREL xor
38 # CHECK-NEXT: }
40 movl mov@GOTPCREL_NORELAX(%rip), %eax
41 test %eax, test@GOTPCREL_NORELAX(%rip)
42 adc adc@GOTPCREL_NORELAX(%rip), %eax
43 add add@GOTPCREL_NORELAX(%rip), %eax
44 and and@GOTPCREL_NORELAX(%rip), %eax
45 cmp cmp@GOTPCREL_NORELAX(%rip), %eax
46 or or@GOTPCREL_NORELAX(%rip), %eax
47 sbb sbb@GOTPCREL_NORELAX(%rip), %eax
48 sub sub@GOTPCREL_NORELAX(%rip), %eax
49 xor xor@GOTPCREL_NORELAX(%rip), %eax
50 call *call@GOTPCREL_NORELAX(%rip)
51 jmp *jmp@GOTPCREL_NORELAX(%rip)
53 movl mov@GOTPCREL_NORELAX(%rip), %r8d
54 test %r8d, test@GOTPCREL_NORELAX(%rip)
55 adc adc@GOTPCREL_NORELAX(%rip), %r8d
56 add add@GOTPCREL_NORELAX(%rip), %r8d
57 and and@GOTPCREL_NORELAX(%rip), %r8d
58 cmp cmp@GOTPCREL_NORELAX(%rip), %r8d
59 or or@GOTPCREL_NORELAX(%rip), %r8d
60 sbb sbb@GOTPCREL_NORELAX(%rip), %r8d
61 sub sub@GOTPCREL_NORELAX(%rip), %r8d
62 xor xor@GOTPCREL_NORELAX(%rip), %r8d
64 movq mov@GOTPCREL_NORELAX(%rip), %rax
65 test %rax, test@GOTPCREL_NORELAX(%rip)
66 adc adc@GOTPCREL_NORELAX(%rip), %rax
67 add add@GOTPCREL_NORELAX(%rip), %rax
68 and and@GOTPCREL_NORELAX(%rip), %rax
69 cmp cmp@GOTPCREL_NORELAX(%rip), %rax
70 or or@GOTPCREL_NORELAX(%rip), %rax
71 sbb sbb@GOTPCREL_NORELAX(%rip), %rax
72 sub sub@GOTPCREL_NORELAX(%rip), %rax
73 xor xor@GOTPCREL_NORELAX(%rip), %rax