[all-commits] [llvm/llvm-project] 3b9832: [lld][WebAssembly] Convert more tests from .ll to ...
Sam Clegg via All-commits
all-commits at lists.llvm.org
Fri Jun 5 11:56:17 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3b983204e4c2cc3c383dba022fe85463e520b3b5
https://github.com/llvm/llvm-project/commit/3b983204e4c2cc3c383dba022fe85463e520b3b5
Author: Sam Clegg <sbc at chromium.org>
Date: 2026-06-05 (Fri, 05 Jun 2026)
Changed paths:
R lld/test/wasm/Inputs/custom.ll
A lld/test/wasm/Inputs/custom.s
R lld/test/wasm/Inputs/explicit-section.ll
A lld/test/wasm/Inputs/explicit-section.s
R lld/test/wasm/Inputs/locals-duplicate1.ll
A lld/test/wasm/Inputs/locals-duplicate1.s
R lld/test/wasm/Inputs/locals-duplicate2.ll
A lld/test/wasm/Inputs/locals-duplicate2.s
R lld/test/wasm/Inputs/many-funcs.ll
A lld/test/wasm/Inputs/many-funcs.s
R lld/test/wasm/Inputs/tag-section1.ll
A lld/test/wasm/Inputs/tag-section1.s
R lld/test/wasm/Inputs/tag-section2.ll
A lld/test/wasm/Inputs/tag-section2.s
R lld/test/wasm/custom-section-name.ll
A lld/test/wasm/custom-section-name.s
R lld/test/wasm/custom-sections.ll
A lld/test/wasm/custom-sections.s
R lld/test/wasm/function-imports-first.ll
A lld/test/wasm/function-imports-first.s
R lld/test/wasm/gc-sections.ll
A lld/test/wasm/gc-sections.s
R lld/test/wasm/init-fini-no-gc.ll
A lld/test/wasm/init-fini-no-gc.s
R lld/test/wasm/local-symbols.ll
A lld/test/wasm/local-symbols.s
M lld/test/wasm/locals-duplicate.test
R lld/test/wasm/many-functions.ll
A lld/test/wasm/many-functions.s
M lld/test/wasm/section-symbol-relocs.yaml
R lld/test/wasm/signature-mismatch-export.ll
A lld/test/wasm/signature-mismatch-export.s
R lld/test/wasm/signature-mismatch-unknown.ll
A lld/test/wasm/signature-mismatch-unknown.s
R lld/test/wasm/signature-mismatch-weak.ll
A lld/test/wasm/signature-mismatch-weak.s
R lld/test/wasm/startstop.ll
A lld/test/wasm/startstop.s
R lld/test/wasm/tag-section.ll
A lld/test/wasm/tag-section.s
R lld/test/wasm/undefined.ll
A lld/test/wasm/undefined.s
R lld/test/wasm/visibility-hidden.ll
A lld/test/wasm/visibility-hidden.s
Log Message:
-----------
[lld][WebAssembly] Convert more tests from .ll to .s (#201713)
This continues the work of converting Wasm tests to use assembly instead
of LLVM IR.
For this change I chose all of the `.ll` tests that could be converted
with minimal changed.
Some changes that were needed:
- data-segments.s: Updated segment order and offsets to match .tdata
behavior.
- visibility-hidden.s: Removed __stack_pointer export expectation as
it's no longer automatically exported in the assembly-based test.
- init-fini.s: Updated body encoding and InitFunctions indices to match
llvm-mc output.
- locals-duplicate.test: Added explicit alignment to inputs to match
original test expectations.
- function-imports-first.s, init-fini.s, signature-mismatch-export.s:
Removed __stack_pointer export expectation as it's no longer
automatically exported in assembly-based tests when unused.
- gc-sections.s: Updated expectations to reflect that __stack_pointer is
garbage collected when GC is enabled.
- tag-section.s: Added and exported an explicit global variable
(`my_global`) to ensure a GLOBAL section is created, preserving the test
for checking that the GLOBAL section comes after the TAG section.
To verify the expectation changes, you can use the following command to
diff the .ll (pre-image) and .s (post-image) expectations ignoring
comment character differences:
```shell
git diff --name-status HEAD~1 HEAD | grep '^D' | grep '\.ll$' | while read -r _ ll; do \
s="${ll%.ll}.s"; \
if [ -f "$s" ]; then \
echo "=== Diff for $s ==="; \
diff -u \
<(git show HEAD~1:"$ll" | grep -E 'CHECK|RUN' | sed -E 's/^;[[:space:]]*//') \
<(cat "$s" | grep -E 'CHECK|RUN' | sed -E 's/^#[[:space:]]*//'); \
fi; \
done
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list