2 ## Test R_RISCV_CALL referencing the current input section with the displacement
3 ## close to the boundary.
5 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+c,+relax %s -o %t.o
6 # RUN: ld.lld -Ttext=0x10000 %t.o -o %t
7 # RUN: llvm-objdump -d --no-show-raw-insn -M no-aliases %t | FileCheck %s
9 # CHECK-LABEL: <_start>:
10 # CHECK-NEXT: jal ra, {{.*}} <_start>
11 # CHECK-NEXT: jal ra, {{.*}} <_start>
17 # CHECK: jal zero, {{.*}} <a>
18 # CHECK-NEXT: jal zero, {{.*}} <c>
19 # CHECK-NEXT: c.j {{.*}} <c>
34 ## Relaxed to jal. If we don't compute the precise value of a, we may consider
35 ## a reachable by c.j.
37 ## Relaxed to jal. c.j is unreachable.
39 ## Relaxed to c.j. If we don't compute the precise value of c, we may consider