[PATCH] D46417: wasm: Add a flag to control merging data segments
Nick Fitzgerald via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 7 13:11:53 PDT 2018
fitzgen added a comment.
In https://reviews.llvm.org/D46417#1088769, @sbc100 wrote:
> FYI the tests are pretty simple. They live in 'test/wasm' and can be run using llvm-lit. The command I normally run is `ninja && ./bin/llvm-lit ../llvm/tools/lld/test`
It looks like these tests might require `llc`, `llvm-as`, etc, but I can't figure out how to enable building them. I get this when I run the tests:
+ ./bin/llvm-lit /home/fitzgen/lld/test/wasm/
llvm-lit: /home/fitzgen/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find llc in /home/fitzgen/llvm/obj/./bin
llvm-lit: /home/fitzgen/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find llvm-as in /home/fitzgen/llvm/obj/./bin
llvm-lit: /home/fitzgen/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find llvm-mc in /home/fitzgen/llvm/obj/./bin
llvm-lit: /home/fitzgen/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find llvm-nm in /home/fitzgen/llvm/obj/./bin
llvm-lit: /home/fitzgen/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find llvm-objdump in /home/fitzgen/llvm/obj/./bin
llvm-lit: /home/fitzgen/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find llvm-pdbutil in /home/fitzgen/llvm/obj/./bin
llvm-lit: /home/fitzgen/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find llvm-readelf in /home/fitzgen/llvm/obj/./bin
llvm-lit: /home/fitzgen/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find llvm-readobj in /home/fitzgen/llvm/obj/./bin
llvm-lit: /home/fitzgen/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find obj2yaml in /home/fitzgen/llvm/obj/./bin
llvm-lit: /home/fitzgen/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find yaml2obj in /home/fitzgen/llvm/obj/./bin
-- Testing: 42 tests, 42 threads --
FAIL: lld :: wasm/call-indirect.ll (1 of 42)
FAIL: lld :: wasm/export-table.test (2 of 42)
FAIL: lld :: wasm/archive.ll (3 of 42)
FAIL: lld :: wasm/custom-sections.ll (4 of 42)
FAIL: lld :: wasm/alias.ll (5 of 42)
FAIL: lld :: wasm/comdats.ll (6 of 42)
FAIL: lld :: wasm/conflict.test (7 of 42)
FAIL: lld :: wasm/entry.ll (8 of 42)
FAIL: lld :: wasm/data-layout.ll (9 of 42)
FAIL: lld :: wasm/cxx-mangling.ll (10 of 42)
FAIL: lld :: wasm/function-imports-first.ll (11 of 42)
FAIL: lld :: wasm/demangle.ll (12 of 42)
FAIL: lld :: wasm/driver.ll (13 of 42)
FAIL: lld :: wasm/invalid-stack-size.test (14 of 42)
FAIL: lld :: wasm/function-imports.ll (15 of 42)
FAIL: lld :: wasm/function-index.test (16 of 42)
FAIL: lld :: wasm/gc-sections.ll (17 of 42)
FAIL: lld :: wasm/import-memory.test (18 of 42)
FAIL: lld :: wasm/export.ll (19 of 42)
FAIL: lld :: wasm/strip-debug.test (20 of 42)
FAIL: lld :: wasm/symbol-type-mismatch.ll (21 of 42)
FAIL: lld :: wasm/reloc-addend.ll (22 of 42)
FAIL: lld :: wasm/locals-duplicate.test (23 of 42)
FAIL: lld :: wasm/undefined-entry.test (24 of 42)
FAIL: lld :: wasm/import-table.test (25 of 42)
FAIL: lld :: wasm/init-fini.ll (26 of 42)
FAIL: lld :: wasm/load-undefined.test (27 of 42)
FAIL: lld :: wasm/gc-imports.ll (28 of 42)
FAIL: lld :: wasm/visibility-hidden.ll (29 of 42)
FAIL: lld :: wasm/relocatable.ll (30 of 42)
FAIL: lld :: wasm/local-symbols.ll (31 of 42)
FAIL: lld :: wasm/weak-symbols.ll (32 of 42)
FAIL: lld :: wasm/undefined-weak-call.ll (33 of 42)
FAIL: lld :: wasm/weak-undefined.ll (34 of 42)
FAIL: lld :: wasm/many-functions.ll (35 of 42)
FAIL: lld :: wasm/version.ll (36 of 42)
FAIL: lld :: wasm/undefined.ll (37 of 42)
FAIL: lld :: wasm/signature-mismatch.ll (38 of 42)
FAIL: lld :: wasm/weak-alias-overide.ll (39 of 42)
FAIL: lld :: wasm/stack-pointer.ll (40 of 42)
FAIL: lld :: wasm/weak-alias.ll (41 of 42)
FAIL: lld :: wasm/signature-mismatch-weak.ll (42 of 42)
Testing Time: 0.14s
********************
Failing Tests (42):
lld :: wasm/alias.ll
lld :: wasm/archive.ll
lld :: wasm/call-indirect.ll
lld :: wasm/comdats.ll
lld :: wasm/conflict.test
lld :: wasm/custom-sections.ll
lld :: wasm/cxx-mangling.ll
lld :: wasm/data-layout.ll
lld :: wasm/demangle.ll
lld :: wasm/driver.ll
lld :: wasm/entry.ll
lld :: wasm/export-table.test
lld :: wasm/export.ll
lld :: wasm/function-imports-first.ll
lld :: wasm/function-imports.ll
lld :: wasm/function-index.test
lld :: wasm/gc-imports.ll
lld :: wasm/gc-sections.ll
lld :: wasm/import-memory.test
lld :: wasm/import-table.test
lld :: wasm/init-fini.ll
lld :: wasm/invalid-stack-size.test
lld :: wasm/load-undefined.test
lld :: wasm/local-symbols.ll
lld :: wasm/locals-duplicate.test
lld :: wasm/many-functions.ll
lld :: wasm/reloc-addend.ll
lld :: wasm/relocatable.ll
lld :: wasm/signature-mismatch-weak.ll
lld :: wasm/signature-mismatch.ll
lld :: wasm/stack-pointer.ll
lld :: wasm/strip-debug.test
lld :: wasm/symbol-type-mismatch.ll
lld :: wasm/undefined-entry.test
lld :: wasm/undefined-weak-call.ll
lld :: wasm/undefined.ll
lld :: wasm/version.ll
lld :: wasm/visibility-hidden.ll
lld :: wasm/weak-alias-overide.ll
lld :: wasm/weak-alias.ll
lld :: wasm/weak-symbols.ll
lld :: wasm/weak-undefined.ll
Unexpected Failures: 42
Is there some documentation for building those tools you can point me at?
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D46417
More information about the llvm-commits
mailing list