[PATCH] D92359: [WebAssembly] Support select and block for reference types

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 30 20:31:27 PST 2020


sbc100 added inline comments.


================
Comment at: llvm/test/MC/WebAssembly/reference-types.s:8
+ref_null_test:
+  .functype ref_null_test() -> ()
+  ref.null func
----------------
aheejin wrote:
> sbc100 wrote:
> > Isn't it useful to continue to test `externref` and `funcref` as function return types?  Or is that tested elsewhere?
> `llvm-mc` cannot check the correctness of that. We can put any signature here and the test will pass anyway.
But it must be at least checked for valid type?

You can write `(foo) -> (bar)` can you?    It might be good to check that these types are accepted in this position?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92359



More information about the llvm-commits mailing list