[WebAssembly] Fixed AsmParser not allowing instructions with /
authorWouter van Oortmerssen <aardappel@gmail.com>
Mon, 1 Oct 2018 17:20:31 +0000 (17:20 +0000)
committerWouter van Oortmerssen <aardappel@gmail.com>
Mon, 1 Oct 2018 17:20:31 +0000 (17:20 +0000)
commit0c83c3ff387a3d84424cd6c9cfba551dd82b9215
tree7f4e64416751ca2100d47261888b401e21f5f9e9
parent0fff5a87ca37966513e96216e99b079b4d2cfc04
[WebAssembly] Fixed AsmParser not allowing instructions with /

Summary:
The AsmParser Lexer regards these as a seperate token.
Here we expand the instruction name with them if they are
adjacent (no whitespace).

Tested: the basic-assembly.s test case has one case with a / in it.
The currently are also instructions with : in them, which we intend
to rename rather than fix them here.

Reviewers: tlively, dschuff

Subscribers: sbc100, jgravelle-google, aheejin, sunfish, llvm-commits

Differential Revision: https://reviews.llvm.org/D52442

llvm-svn: 343501
llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
llvm/test/MC/WebAssembly/basic-assembly.s