[llvm] [RelLookupTableConverter] Drop unnamed_addr to avoid generating GOTPCREL relocations (PR #142304)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 1 07:29:37 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `llvm` at step 5 "ninja check 1".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/17506
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/RelLookupTableConverter/unnamed_addr.ll' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt < /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll -passes=rel-lookup-table-converter -relocation-model=pic -mtriple=x86_64-apple-darwin -S | /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck -check-prefix=x86_64-apple-darwin /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll # RUN: at line 2
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt -passes=rel-lookup-table-converter -relocation-model=pic -mtriple=x86_64-apple-darwin -S
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck -check-prefix=x86_64-apple-darwin /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'x86_64-apple-darwin', see --version and --triple.
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt: WARNING: failed to create target machine for 'x86_64-apple-darwin': unable to get target for 'x86_64-apple-darwin', see --version and --triple.
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll:22:24: error: x86_64-apple-darwin: expected string not found in input
; x86_64-apple-darwin: @a0 = private constant i32 0
^
<stdin>:1:1: note: scanning from here
; ModuleID = '<stdin>'
^
<stdin>:5:22: note: possible intended match here
@a0 = private unnamed_addr constant i32 0
^
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll:67:29: error: x86_64-apple-darwin-NEXT: expected string not found in input
; x86_64-apple-darwin-NEXT: [[RELTABLE_SHIFT:%.*]] = shl i64 [[OFFSET]], 2
^
<stdin>:19:43: note: scanning from here
define ptr @load_relative_1(i64 %offset) {
^
<stdin>:19:43: note: with "OFFSET" equal to "%offset"
define ptr @load_relative_1(i64 %offset) {
^
<stdin>:20:59: note: possible intended match here
%gep = getelementptr inbounds [3 x ptr], ptr @load_relative_1.table, i64 0, i64 %offset
^
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll:91:29: error: x86_64-apple-darwin-NEXT: expected string not found in input
; x86_64-apple-darwin-NEXT: [[RELTABLE_SHIFT:%.*]] = shl i64 [[OFFSET]], 2
^
<stdin>:25:43: note: scanning from here
define ptr @load_relative_2(i64 %offset) {
^
<stdin>:25:43: note: with "OFFSET" equal to "%offset"
define ptr @load_relative_2(i64 %offset) {
^
<stdin>:26:59: note: possible intended match here
%gep = getelementptr inbounds [4 x ptr], ptr @load_relative_2.table, i64 0, i64 %offset
^
Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll
-dump-input=help explains the following input dump.
Input was:
...
```
</details>
https://github.com/llvm/llvm-project/pull/142304
More information about the llvm-commits
mailing list