This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Convert more tests to asm format
ClosedPublic

Authored by sbc100 on May 1 2021, 9:29 PM.

Details

Summary

To of these are basically trivial the third (shared.s)
did have some expectations change but only due to two
data symbols being re-ordered.

Diff Detail

Event Timeline

sbc100 created this revision.May 1 2021, 9:29 PM
sbc100 requested review of this revision.May 1 2021, 9:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 1 2021, 9:29 PM
dschuff added inline comments.May 3 2021, 2:52 PM
lld/test/wasm/shared.s
15
87
110

Does this actually affect the link?

sbc100 added inline comments.May 3 2021, 3:08 PM
lld/test/wasm/shared.s
110

Yes. Without this, one cannot import __stack_pointer since its mutable.

dschuff accepted this revision.May 3 2021, 5:07 PM
dschuff added inline comments.
lld/test/wasm/shared.s
110

Ah, right. I guess if we really wanted asm to be a first-class citizen we'd want a directive such as .target_features so asm writers wouldn't have to encode this manually. Maybe in a future where basically all compilations use post-MVP features, it will be worth it, but probably not now.

This revision is now accepted and ready to land.May 3 2021, 5:07 PM
sbc100 added inline comments.May 3 2021, 5:08 PM
lld/test/wasm/shared.s
110

Yes, I was thinking of adding a comment here that this is a little clunky..

sbc100 updated this revision to Diff 342599.May 3 2021, 5:10 PM
  • add commend + TODO
This revision was landed with ongoing or failed builds.May 3 2021, 5:21 PM
This revision was automatically updated to reflect the committed changes.
lld/test/wasm/shared-needed.s