1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/test/MC/WebAssembly
Derek Schuff 5f06cbb29f [WebAssembly] Added initial AsmParser implementation.
It uses the MC framework and the tablegen matcher to do the
heavy lifting. Can handle both explicit and implicit locals
(-disable-wasm-explicit-locals). Comes with a small regression
test.

This is a first basic implementation that can parse most llvm .s
output and round-trips most instructions succesfully, but in order
to keep the commit small, does not address all issues.

There are a fair number of mismatches between what MC / assembly
matcher think a "CPU" should look like and what WASM provides,
some already have workarounds in this commit (e.g. the way it
deals with register operands) and some that require further work.
Some of that further work may involve changing what the
Disassembler outputs (and what s2wasm parses), so are probably
best left to followups.

Some known things missing:
- Many directives are ignored and not emitted.
- Vararg calls are parsed but extra args not emitted.
- Loop signatures are likely incorrect.
- $drop= is not emitted.
- Disassembler does not output SIMD types correctly, so assembler
  can't test them.

Patch by Wouter van Oortmerssen

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

llvm-svn: 328028
2018-03-20 20:06:35 +00:00
..
array-fill.ll [WebAssembly] Remove DataSize from linking metadata section 2018-02-27 23:57:37 +00:00
basic-assembly.s [WebAssembly] Added initial AsmParser implementation. 2018-03-20 20:06:35 +00:00
blockaddress.ll [WebAssembly] MC: Make explicit our current lack of support for relocations against unnamed temporary symbols. 2018-02-16 18:06:05 +00:00
bss.ll [WebAssembly] Remove DataSize from linking metadata section 2018-02-27 23:57:37 +00:00
comdat.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:19:48 +00:00
custom-code-section.ll [WebAssembly] MC: Use inline triple in test bitcode files 2018-01-23 23:03:47 +00:00
debug-info.ll [WebAssembly] MC: Use inline triple in test bitcode files 2018-01-23 23:03:47 +00:00
explicit-sections.ll [WebAssembly] Remove DataSize from linking metadata section 2018-02-27 23:57:37 +00:00
external-data.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:19:48 +00:00
external-func-address.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:19:48 +00:00
file-headers.ll
func-address.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:19:48 +00:00
global-ctor-dtor.ll Revert "[WebAssembly] More uses of uint8_t" and "[WebAssembly] Update tests" 2018-03-02 14:07:39 +00:00
libcall.ll [WebAssembly] Avoid cast ExprType to wasm::ValType 2018-03-02 21:33:14 +00:00
lit.local.cfg
reloc-code.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:19:48 +00:00
reloc-data.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:19:48 +00:00
sections.ll [WebAssembly] Add first claass symbol table to wasm objects 2018-02-23 05:08:34 +00:00
stack-ptr.ll [WebAssembly] MC: Use inline triple in test bitcode files 2018-01-23 23:03:47 +00:00
unnamed-data.ll [WebAssembly] Remove DataSize from linking metadata section 2018-02-27 23:57:37 +00:00
visibility.ll [WebAssembly] Remove DataSize from linking metadata section 2018-02-27 23:57:37 +00:00
weak-alias.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:19:48 +00:00
weak.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:19:48 +00:00