Currently the test only checks behaviour for weak function symbols.
Should be good to merge straight away?
Paths
| Differential D41449
[WebAssembly] Add extra test for weak global symbols ClosedPublic Authored by ncw on Dec 20 2017, 6:50 AM.
Details Summary Currently the test only checks behaviour for weak function symbols. Should be good to merge straight away?
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, sunfish, aheejin and 3 others. · View Herald TranscriptDec 20 2017, 6:50 AM Comment Actions Nice. I wonder if we added --emit-reloc is might show more clearly which address is being loaded by the code section? Happy to land either way. This revision is now accepted and ready to land.Dec 20 2017, 4:57 PM Comment Actions Since the relocation is emitted in the function body, which is tested, it should be good enough for now. D41390 modifies this test (by discarding the duplicate InputSegment), at which point the test is even more precise. Until D41390 lands, this test doesn't need to be too precise since it's currently asserting "wrong" output (both copies of the weak functions and weak globals are there in the CODE/DATA sections). I'd say it's fine to commit this as-is - we're revisiting it soon. Closed by commit rL321308: [WebAssembly] Add extra test for weak global symbols (authored by sbc). · Explain WhyDec 21 2017, 1:15 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 127713 test/wasm/Inputs/weak-symbol1.ll
test/wasm/Inputs/weak-symbol2.ll
test/wasm/weak-symbols.ll
|