• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck %s
2// RUN: llvm-mc -filetype=obj -relax-relocations=false -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck --check-prefix=OLD %s
3
4// these should produce R_X86_64_GOTPCRELX
5
6        call *call@GOTPCREL(%rip)
7        jmp *jmp@GOTPCREL(%rip)
8
9// CHECK:      Relocations [
10// CHECK-NEXT:   Section ({{.*}}) .rela.text {
11// CHECK-NEXT:     R_X86_64_GOTPCRELX call
12// CHECK-NEXT:     R_X86_64_GOTPCRELX jmp
13// CHECK-NEXT:   }
14// CHECK-NEXT: ]
15
16// OLD:      Relocations [
17// OLD-NEXT:   Section ({{.*}}) .rela.text {
18// OLD-NEXT:     R_X86_64_GOTPCREL call
19// OLD-NEXT:     R_X86_64_GOTPCREL jmp
20// OLD-NEXT:   }
21// OLD-NEXT: ]
22