[llvm] [Utils][update_mc_test_checks] Support updating round-trip tests. (PR #164425)

Ivan Kosarev via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 24 06:16:30 PDT 2025


================
@@ -24,12 +24,24 @@
 OUTPUT_SKIPPED_RE = re.compile(r"(.text)")
 COMMENT = {"asm": "//", "dasm": "#"}
 
+SUBSTITUTIONS = {
+    "%extract-encodings": "sed -n 's/.*encoding://p'",
----------------
kosarev wrote:

It's been in use since months ago, no complaints so far I'm aware of. Lots of tests seem to use sed, including some invoking sed -n specifically.

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


More information about the llvm-commits mailing list