1// REQUIRES: x86
2
3// This is a test for R_X86_64_PC8 and R_X86_64_PC16.
4
5// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
6// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/x86-64-pcrel.s -o %t2.o
7// RUN: ld.lld -o %t.exe %t1.o %t2.o
8// RUN: llvm-objdump -s %t.exe | FileCheck %s
9
10// CHECK:      Contents of section .text:
11// CHECK-NEXT: 2000cccc cccccccc cccccccc cccccccc
12// CHECK-NEXT: 20cccccc cccccccc cccccccc cccccccc
13// CHECK-NEXT: e0ffcccc cccccccc cccccccc cccccccc
14// CHECK-NEXT: e0cccccc cccccccc cccccccc cccccccc
15
16.globl _start
17_start:
18
19.word foo - _start
20.fill 14,1,0xcc
21
22.byte foo - _start
23.fill 15,1,0xcc
24