[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:35:11 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/20928
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/RelLookupTableConverter/unnamed_addr.ll' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
/Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt < /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll -passes=rel-lookup-table-converter -relocation-model=pic -mtriple=x86_64-apple-darwin -S | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck -check-prefix=x86_64-apple-darwin /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll # RUN: at line 2
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -passes=rel-lookup-table-converter -relocation-model=pic -mtriple=x86_64-apple-darwin -S
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck -check-prefix=x86_64-apple-darwin /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll
/Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt: warning: failed to infer data layout: unable to get target for 'x86_64-apple-darwin', see --version and --triple.
/Users/buildbot/buildbot-root/aarch64-darwin/build/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.
[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll:22:24: [0m[0;1;31merror: [0m[1mx86_64-apple-darwin: expected string not found in input
[0m; x86_64-apple-darwin: @a0 = private constant i32 0
[0;1;32m ^
[0m[1m<stdin>:1:1: [0m[0;1;30mnote: [0m[1mscanning from here
[0m; ModuleID = '<stdin>'
[0;1;32m^
[0m[1m<stdin>:5:22: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m at a0 = private unnamed_addr constant i32 0
[0;1;32m ^
[0m[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll:67:29: [0m[0;1;31merror: [0m[1mx86_64-apple-darwin-NEXT: expected string not found in input
[0m; x86_64-apple-darwin-NEXT: [[RELTABLE_SHIFT:%.*]] = shl i64 [[OFFSET]], 2
[0;1;32m ^
[0m[1m<stdin>:19:43: [0m[0;1;30mnote: [0m[1mscanning from here
[0mdefine ptr @load_relative_1(i64 %offset) {
[0;1;32m ^
[0m[1m<stdin>:19:43: [0m[0;1;30mnote: [0m[1mwith "OFFSET" equal to "%offset"
[0mdefine ptr @load_relative_1(i64 %offset) {
[0;1;32m ^
[0m[1m<stdin>:20:59: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m %gep = getelementptr inbounds [3 x ptr], ptr @load_relative_1.table, i64 0, i64 %offset
[0;1;32m ^
[0m[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll:91:29: [0m[0;1;31merror: [0m[1mx86_64-apple-darwin-NEXT: expected string not found in input
[0m; x86_64-apple-darwin-NEXT: [[RELTABLE_SHIFT:%.*]] = shl i64 [[OFFSET]], 2
[0;1;32m ^
[0m[1m<stdin>:25:43: [0m[0;1;30mnote: [0m[1mscanning from here
[0mdefine ptr @load_relative_2(i64 %offset) {
[0;1;32m ^
[0m[1m<stdin>:25:43: [0m[0;1;30mnote: [0m[1mwith "OFFSET" equal to "%offset"
[0mdefine ptr @load_relative_2(i64 %offset) {
[0;1;32m ^
[0m[1m<stdin>:26:59: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m %gep = getelementptr inbounds [4 x ptr], ptr @load_relative_2.table, i64 0, i64 %offset
[0;1;32m ^
[0m
Input file: <stdin>
Check file: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/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