1# REQUIRES: riscv 2 3# RUN: llvm-mc -filetype=obj -triple=riscv64 %s -o %t.o 4# RUN: llvm-mc -filetype=obj -triple=riscv64 %S/Inputs/abs256.s -o %t256.o 5# 6# RUN: ld.lld -z max-page-size=4096 %t.o %t256.o -o %t 7# RUN: llvm-objdump -s --section=.data %t | FileCheck %s 8# 9# CHECK: Contents of section .data: 10## 12158: S = 0x100, A = 0, P = 0x12158 11## S + A - P = 0xfffedfa8 12## 1215c: S = 0x100, A = 1, P = 0x1215c 13## S + A - P = 0xfffedfa5 14## 12160: S = 0x100, A = -1, P = 0x12160 15## S + A - P = 0xfffedf9f 16# CHECK-NEXT: 12158 a8dffeff a5dffeff 9fdffeff 17 18.globl _start 19_start: 20.data 21 .word foo@PLT - . 22 .word foo@PLT - . + 1 23 .word foo@PLT - . - 1 24