[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:25:45 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/26573
<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):
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt < /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll -passes=rel-lookup-table-converter -relocation-model=pic -mtriple=x86_64-apple-darwin -S | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefix=x86_64-apple-darwin /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll # RUN: at line 2
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefix=x86_64-apple-darwin /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -passes=rel-lookup-table-converter -relocation-model=pic -mtriple=x86_64-apple-darwin -S
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt < /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll -passes=rel-lookup-table-converter -relocation-model=pic -mtriple=aarch64 -S | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefix=aarch64 /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll # RUN: at line 3
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefix=aarch64 /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -passes=rel-lookup-table-converter -relocation-model=pic -mtriple=aarch64 -S
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt: warning: failed to infer data layout: unable to get target for 'aarch64', see --version and --triple.
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt: WARNING: failed to create target machine for 'aarch64': unable to get target for 'aarch64', see --version and --triple.
[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll:36:12: [0m[0;1;31merror: [0m[1maarch64: expected string not found in input
[0m; aarch64: @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/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll:73:17: [0m[0;1;31merror: [0m[1maarch64-NEXT: expected string not found in input
[0m; aarch64-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/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll:97:17: [0m[0;1;31merror: [0m[1maarch64-NEXT: expected string not found in input
[0m; aarch64-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: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll
...
```
</details>
https://github.com/llvm/llvm-project/pull/142304
More information about the llvm-commits
mailing list