[PATCH] D53516: [WebAssembly] Fix assembly printing of br_table
Wouter van Oortmerssen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 22 14:49:19 PDT 2018
aardappel accepted this revision.
aardappel added inline comments.
This revision is now accepted and ready to land.
================
Comment at: test/CodeGen/WebAssembly/stack-insts.ll:9
+
+; Tests if br_table is printed correctly with a tab.
+; CHECK-LABEL: test0:
----------------
aheejin wrote:
> aardappel wrote:
> > If this is the only thing this file is testing, is "stack-inst.ll" not a bit generic sounding for what it actually does? Either we intend to add more stack instruction format testing to this file, or it should have a more specific name?
> First I tried to create a .s test to test with `llvm-mc` so we can only test the parsing and printing, but it looks like [[ https://bugs.llvm.org/show_bug.cgi?id=39384 | `br_table` is not supported in WebAssemblyAsmParser ]] now. So I made this file, because all other .ll tests in this directory use non-stack version of instructions. The reason I named this file name `stack-insts.ll` was I thought maybe there will be cases we want to test misc. things for stack version of instructions, in which case we can add them to this file. But if you think for now this file should have more specific name, I think that also makes sense too.
No, just an observation, it's fine if we want to add more tests.
Btw, hadn't seen that bug, feel free to assign them to me in the future.
Repository:
rL LLVM
https://reviews.llvm.org/D53516
More information about the llvm-commits
mailing list