Skip to content

Conversation

@kosarev
Copy link
Collaborator

@kosarev kosarev commented Nov 17, 2025

Fixes #167700 to support
builds where TableGen's output file is specified as full path
rather than just filename.

@kosarev kosarev marked this pull request as ready for review November 17, 2025 11:49
Copy link
Collaborator Author

kosarev commented Nov 17, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@llvmbot
Copy link
Member

llvmbot commented Nov 17, 2025

@llvm/pr-subscribers-tablegen

Author: Ivan Kosarev (kosarev)

Changes

Fixes #167700 to support
builds where TableGen's output file is specified as full path
rather than just filename.


Full diff: https://github.com/llvm/llvm-project/pull/168355.diff

1 Files Affected:

  • (modified) llvm/lib/TableGen/Main.cpp (+1-2)
diff --git a/llvm/lib/TableGen/Main.cpp b/llvm/lib/TableGen/Main.cpp
index c3869c3fb9a5a..165c957fc9977 100644
--- a/llvm/lib/TableGen/Main.cpp
+++ b/llvm/lib/TableGen/Main.cpp
@@ -167,8 +167,7 @@ int llvm::TableGenMain(const char *argv0,
 
   // Write output to memory.
   Timer.startBackendTimer("Backend overall");
-  SmallString<128> FilenamePrefix(OutputFilename);
-  sys::path::replace_extension(FilenamePrefix, "");
+  SmallString<128> FilenamePrefix(sys::path::stem(OutputFilename));
   TableGenOutputFiles OutFiles;
   unsigned status = 0;
   // ApplyCallback will return true if it did not apply any callback. In that

@keith
Copy link
Member

keith commented Nov 17, 2025

this doesn't fix the core bazel issue because this also affects the output path, so the assumption is that instead of outputting foo/bar/R600GenRegisterInfo.inc it outputs R600GenRegisterInfo.inc directly, assuming that it is run from the same directory where it should output the file

@keith
Copy link
Member

keith commented Nov 17, 2025

something like this would solve that:

diff --git a/llvm/utils/TableGen/RegisterInfoEmitter.cpp b/llvm/utils/TableGen/RegisterInfoEmitter.cpp
index ef7b13e8940f..286d5bf637ce 100644
--- a/llvm/utils/TableGen/RegisterInfoEmitter.cpp
+++ b/llvm/utils/TableGen/RegisterInfoEmitter.cpp
@@ -29,6 +29,7 @@
 #include "llvm/Support/Casting.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Format.h"
+#include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/TableGen/Error.h"
 #include "llvm/TableGen/Record.h"
@@ -104,7 +105,7 @@ static void emitInclude(StringRef FilenamePrefix, StringRef IncludeFile,
                         StringRef GuardMacro, raw_ostream &OS) {
   OS << "#ifdef " << GuardMacro << '\n';
   OS << "#undef " << GuardMacro << '\n';
-  OS << "#include \"" << FilenamePrefix << IncludeFile << "\"\n";
+  OS << "#include \"" << sys::path::stem(FilenamePrefix) << IncludeFile << "\"\n";
   OS << "#endif\n\n";
 }

@kosarev
Copy link
Collaborator Author

kosarev commented Nov 17, 2025

This PR should have the same effect. It would make most sense to strip the directories from the suffix in the first place.

@keith
Copy link
Member

keith commented Nov 17, 2025

see my comment above about why that is not the case

@keith
Copy link
Member

keith commented Nov 17, 2025

the problem is that

if (Filename != "-") {
Filename = FilenamePrefix;
Filename.append(Suffix);
}
happens after this removing of the directory portion of the path

@keith
Copy link
Member

keith commented Nov 17, 2025

fwiw i just validated with my diff above + my bazel PR everything builds again

@keith
Copy link
Member

keith commented Nov 17, 2025

#168409

Fixes #167700 to support
builds where TableGen's output file is specified as full path
rather than just filename.
@kosarev kosarev force-pushed the users/kosarev/strip-dirs-in-tablegen-prefix branch from cf78b7a to ab305c0 Compare November 17, 2025 17:47
@kosarev
Copy link
Collaborator Author

kosarev commented Nov 17, 2025

Updated.

Copy link
Member

@keith keith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and it does work with the bazel build, thanks!

@kosarev
Copy link
Collaborator Author

kosarev commented Nov 17, 2025

Thanks. Will merge this as soon as the buildbots show it green.

@github-actions
Copy link

🐧 Linux x64 Test Results

  • 186278 tests passed
  • 4844 tests skipped

@keith
Copy link
Member

keith commented Nov 17, 2025

🚢 🎉

@kosarev kosarev merged commit cc304e5 into main Nov 17, 2025
10 checks passed
@kosarev kosarev deleted the users/kosarev/strip-dirs-in-tablegen-prefix branch November 17, 2025 18:39
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 17, 2025

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[707/1465] Building CXX object tools/yaml2obj/CMakeFiles/yaml2obj.dir/yaml2obj.cpp.o
[708/1465] Linking CXX executable bin/llvm-split
[709/1465] Linking CXX executable bin/yaml2obj
[709/1465] Running lld test suite
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/wasm-ld
-- Testing: 3158 tests, 60 workers --
Testing:  0.. 10.
FAIL: lld :: ELF/aarch64-adrp-ldr-got.s (537 of 3158)
******************** TEST 'lld :: ELF/aarch64-adrp-ldr-got.s' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp && split-file /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp
# executed command: rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp
# executed command: split-file /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp
# RUN: at line 4
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o
# RUN: at line 5
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/unpaired.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/unpaired.o
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/unpaired.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/unpaired.o
# RUN: at line 6
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/lone-ldr.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/lone-ldr.o
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/lone-ldr.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/lone-ldr.o
# RUN: at line 8
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld.lld /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o -T /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/out-of-adr-range.t -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld.lld /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o -T /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/out-of-adr-range.t -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# RUN: at line 9
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-objdump --no-show-raw-insn -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-objdump --no-show-raw-insn -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s
# RUN: at line 32
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld.lld /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o -T /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/within-adr-range.t -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld.lld /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o -T /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/within-adr-range.t -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# RUN: at line 33
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-objdump --no-show-raw-insn -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/FileCheck --check-prefix=ADR /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-objdump --no-show-raw-insn -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/FileCheck --check-prefix=ADR /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s
# .---command stderr------------
# | /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s:37:13: error: ADR-NEXT: is not on the line after the previous match
# | # ADR-NEXT: adr x1
# |             ^
# | <stdin>:8:8: note: 'next' match was here
# |  2004: adr x1, 0x1000 <x>
Step 7 (check) failure: check (failure)
...
[707/1465] Building CXX object tools/yaml2obj/CMakeFiles/yaml2obj.dir/yaml2obj.cpp.o
[708/1465] Linking CXX executable bin/llvm-split
[709/1465] Linking CXX executable bin/yaml2obj
[709/1465] Running lld test suite
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/wasm-ld
-- Testing: 3158 tests, 60 workers --
Testing:  0.. 10.
FAIL: lld :: ELF/aarch64-adrp-ldr-got.s (537 of 3158)
******************** TEST 'lld :: ELF/aarch64-adrp-ldr-got.s' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp && split-file /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp
# executed command: rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp
# executed command: split-file /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp
# RUN: at line 4
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o
# RUN: at line 5
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/unpaired.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/unpaired.o
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/unpaired.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/unpaired.o
# RUN: at line 6
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/lone-ldr.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/lone-ldr.o
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-mc -filetype=obj -triple=aarch64 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/lone-ldr.s -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/lone-ldr.o
# RUN: at line 8
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld.lld /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o -T /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/out-of-adr-range.t -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld.lld /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o -T /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/out-of-adr-range.t -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# RUN: at line 9
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-objdump --no-show-raw-insn -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-objdump --no-show-raw-insn -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s
# RUN: at line 32
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld.lld /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o -T /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/within-adr-range.t -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/ld.lld /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a.o -T /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/within-adr-range.t -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# RUN: at line 33
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-objdump --no-show-raw-insn -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/FileCheck --check-prefix=ADR /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/llvm-objdump --no-show-raw-insn -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/tools/lld/test/ELF/Output/aarch64-adrp-ldr-got.s.tmp/a
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-nopg2jzm/bin/FileCheck --check-prefix=ADR /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s
# .---command stderr------------
# | /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/ELF/aarch64-adrp-ldr-got.s:37:13: error: ADR-NEXT: is not on the line after the previous match
# | # ADR-NEXT: adr x1
# |             ^
# | <stdin>:8:8: note: 'next' match was here
# |  2004: adr x1, 0x1000 <x>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants