brintos

brintos / llvm-project-archived public Read only

0
0
Text · 675 B · 8ead933 Raw
24 lines · plain
1# REQUIRES: riscv2 3# RUN: llvm-mc -filetype=obj -triple=riscv64 %s -o %t.o4# RUN: llvm-mc -filetype=obj -triple=riscv64 %S/Inputs/abs256.s -o %t256.o5#6# RUN: ld.lld -z max-page-size=4096 %t.o %t256.o -o %t7# RUN: llvm-objdump -s --section=.data %t | FileCheck %s8#9# CHECK: Contents of section .data:10## 12158: S = 0x100, A = 0, P = 0x1215811##        S + A - P = 0xfffedfa812## 1215c: S = 0x100, A = 1, P = 0x1215c13##        S + A - P = 0xfffedfa514## 12160: S = 0x100, A = -1, P = 0x1216015##        S + A - P = 0xfffedf9f16# CHECK-NEXT: 12158 a8dffeff a5dffeff 9fdffeff17 18.globl _start19_start:20.data21  .word %pltpcrel(foo)22  .word %pltpcrel(foo + 1)23  .word %pltpcrel(foo - 1)24