[llvm] [BOLT][RISCV] Fix AUIPC/JALR call rewriting (PR #216882)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 06:52:24 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `bolt-aarch64-ubuntu-nfc` running on `bolt-worker-aarch64` while building `bolt` at step 15 "nfc-test check-bolt".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/217/builds/20146

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 15 (nfc-test check-bolt) failure: NFC check-bolt completed (failure)
******************** TEST 'BOLT :: RISCV/call-relocation-pair.s' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
/home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/llvm-mc -triple riscv64 -mattr=-relax -filetype=obj -o /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp.o /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/llvm-project/bolt/test/RISCV/call-relocation-pair.s
# executed command: /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/llvm-mc -triple riscv64 -mattr=-relax -filetype=obj -o /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp.o /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/llvm-project/bolt/test/RISCV/call-relocation-pair.s
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/ld.lld --no-relax --emit-relocs -o /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp.o
# executed command: /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/ld.lld --no-relax --emit-relocs -o /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp.o
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/llvm-readelf --relocations /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp | /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/FileCheck --check-prefix=RELOCS /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/llvm-project/bolt/test/RISCV/call-relocation-pair.s
# executed command: /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/llvm-readelf --relocations /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp
# note: command had no output on stdout or stderr
# executed command: /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/FileCheck --check-prefix=RELOCS /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/llvm-project/bolt/test/RISCV/call-relocation-pair.s
# note: command had no output on stdout or stderr
# RUN: at line 7
/home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a --print-fix-riscv-calls --print-only=_start -o /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp.bolt /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp      | /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/FileCheck --check-prefix=BOLT /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/llvm-project/bolt/test/RISCV/call-relocation-pair.s
# executed command: /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a --print-fix-riscv-calls --print-only=_start -o /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp.bolt /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp
# note: command had no output on stdout or stderr
# executed command: /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/FileCheck --check-prefix=BOLT /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/llvm-project/bolt/test/RISCV/call-relocation-pair.s
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/llvm-objdump -d /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp.bolt | /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/FileCheck --check-prefix=OBJDUMP /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/llvm-project/bolt/test/RISCV/call-relocation-pair.s
# executed command: /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/llvm-objdump -d /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/tools/bolt/test/RISCV/Output/call-relocation-pair.s.tmp.bolt
# note: command had no output on stdout or stderr
# executed command: /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/build/bin/FileCheck --check-prefix=OBJDUMP /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/llvm-project/bolt/test/RISCV/call-relocation-pair.s
# .---command stderr------------
# | /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/llvm-project/bolt/test/RISCV/call-relocation-pair.s:25:18: error: OBJDUMP-NEXT: expected string not found in input
# | // OBJDUMP-NEXT: auipc ra,
# |                  ^
# | <stdin>:36:22: note: scanning from here
# |  80109c: 00000013 nop
# |                      ^
# | <stdin>:46:20: note: possible intended match here
# | 00000000008010c0 <target_call>:
# |                    ^
# | 
# | Input file: <stdin>
# | Check file: /home/buildbot/workspace/bolt-aarch64-ubuntu-nfc/llvm-project/bolt/test/RISCV/call-relocation-pair.s
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
...

```

</details>

https://github.com/llvm/llvm-project/pull/216882


More information about the llvm-commits mailing list