[PATCH] D101711: [lld][WebAssembly] Convert more tests to asm format

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 3 17:07:05 PDT 2021


dschuff accepted this revision.
dschuff added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lld/test/wasm/shared.s:109
+
+.section .custom_section.target_features,"",@
+.int8 1
----------------
sbc100 wrote:
> dschuff wrote:
> > Does this actually affect the link?
> Yes.  Without this, one cannot import `__stack_pointer` since its mutable.  
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.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101711/new/

https://reviews.llvm.org/D101711



More information about the llvm-commits mailing list