1 # RUN: llvm-mc --filetype=obj --triple=loongarch64 %s -o %t
2 # RUN: llvm-readobj -r %t | FileCheck %s
4 ## Check that subtraction expressions emit R_LARCH_32_PCREL and R_LARCH_64_PCREL relocations.
6 ## TODO: 1- or 2-byte data relocations are not supported for now.
9 # CHECK-NEXT: Section ({{.*}}) .rela.data {
10 # CHECK-NEXT: 0x0 R_LARCH_64_PCREL sx 0x0
11 # CHECK-NEXT: 0x8 R_LARCH_64_PCREL sy 0x0
12 # CHECK-NEXT: 0x10 R_LARCH_32_PCREL sx 0x0
13 # CHECK-NEXT: 0x14 R_LARCH_32_PCREL sy 0x0