74 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o2# RUN: llvm-readobj -r %t.o | FileCheck %s3 4# CHECK: Relocations [5# CHECK-NEXT: Section ({{.*}}) .rela.text {6# CHECK-NEXT: R_X86_64_GOTPCREL mov7# CHECK-NEXT: R_X86_64_GOTPCREL test8# CHECK-NEXT: R_X86_64_GOTPCREL adc9# CHECK-NEXT: R_X86_64_GOTPCREL add10# CHECK-NEXT: R_X86_64_GOTPCREL and11# CHECK-NEXT: R_X86_64_GOTPCREL cmp12# CHECK-NEXT: R_X86_64_GOTPCREL or13# CHECK-NEXT: R_X86_64_GOTPCREL sbb14# CHECK-NEXT: R_X86_64_GOTPCREL sub15# CHECK-NEXT: R_X86_64_GOTPCREL xor16# CHECK-NEXT: R_X86_64_GOTPCREL call17# CHECK-NEXT: R_X86_64_GOTPCREL jmp18# CHECK-NEXT: R_X86_64_GOTPCREL mov19# CHECK-NEXT: R_X86_64_GOTPCREL test20# CHECK-NEXT: R_X86_64_GOTPCREL adc21# CHECK-NEXT: R_X86_64_GOTPCREL add22# CHECK-NEXT: R_X86_64_GOTPCREL and23# CHECK-NEXT: R_X86_64_GOTPCREL cmp24# CHECK-NEXT: R_X86_64_GOTPCREL or25# CHECK-NEXT: R_X86_64_GOTPCREL sbb26# CHECK-NEXT: R_X86_64_GOTPCREL sub27# CHECK-NEXT: R_X86_64_GOTPCREL xor28# CHECK-NEXT: R_X86_64_GOTPCREL mov29# CHECK-NEXT: R_X86_64_GOTPCREL test30# CHECK-NEXT: R_X86_64_GOTPCREL adc31# CHECK-NEXT: R_X86_64_GOTPCREL add32# CHECK-NEXT: R_X86_64_GOTPCREL and33# CHECK-NEXT: R_X86_64_GOTPCREL cmp34# CHECK-NEXT: R_X86_64_GOTPCREL or35# CHECK-NEXT: R_X86_64_GOTPCREL sbb36# CHECK-NEXT: R_X86_64_GOTPCREL sub37# CHECK-NEXT: R_X86_64_GOTPCREL xor38# CHECK-NEXT: }39 40movl mov@GOTPCREL_NORELAX(%rip), %eax41test %eax, test@GOTPCREL_NORELAX(%rip)42adc adc@GOTPCREL_NORELAX(%rip), %eax43add add@GOTPCREL_NORELAX(%rip), %eax44and and@GOTPCREL_NORELAX(%rip), %eax45cmp cmp@GOTPCREL_NORELAX(%rip), %eax46or or@GOTPCREL_NORELAX(%rip), %eax47sbb sbb@GOTPCREL_NORELAX(%rip), %eax48sub sub@GOTPCREL_NORELAX(%rip), %eax49xor xor@GOTPCREL_NORELAX(%rip), %eax50call *call@GOTPCREL_NORELAX(%rip)51jmp *jmp@GOTPCREL_NORELAX(%rip)52 53movl mov@GOTPCREL_NORELAX(%rip), %r8d54test %r8d, test@GOTPCREL_NORELAX(%rip)55adc adc@GOTPCREL_NORELAX(%rip), %r8d56add add@GOTPCREL_NORELAX(%rip), %r8d57and and@GOTPCREL_NORELAX(%rip), %r8d58cmp cmp@GOTPCREL_NORELAX(%rip), %r8d59or or@GOTPCREL_NORELAX(%rip), %r8d60sbb sbb@GOTPCREL_NORELAX(%rip), %r8d61sub sub@GOTPCREL_NORELAX(%rip), %r8d62xor xor@GOTPCREL_NORELAX(%rip), %r8d63 64movq mov@GOTPCREL_NORELAX(%rip), %rax65test %rax, test@GOTPCREL_NORELAX(%rip)66adc adc@GOTPCREL_NORELAX(%rip), %rax67add add@GOTPCREL_NORELAX(%rip), %rax68and and@GOTPCREL_NORELAX(%rip), %rax69cmp cmp@GOTPCREL_NORELAX(%rip), %rax70or or@GOTPCREL_NORELAX(%rip), %rax71sbb sbb@GOTPCREL_NORELAX(%rip), %rax72sub sub@GOTPCREL_NORELAX(%rip), %rax73xor xor@GOTPCREL_NORELAX(%rip), %rax74