summaryrefslogtreecommitdiff
path: root/test/llvm_autogenerated/signext-zeroext.wast
Commit message (Collapse)AuthorAgeFilesLines
* Remove llvm_autogenerated tests (#2120)Heejin Ahn2019-05-171-90/+0
| | | After s2wasm was removed, these tests don't seem to be used anymore.
* Massive renaming (#1855)Thomas Lively2019-01-071-9/+9
| | | | | | Automated renaming according to https://github.com/WebAssembly/spec/issues/884#issuecomment-426433329.
* Let s2wasm emit binary output (#1465)Jacob Gravelle2018-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | * Emit invokeFuncs list as metadata * Refactor s2wasm to use ModuleWriter * Fix wasm-emscripten-finalize metadata output for binary output * Add a flag to emit binary from s2wasm NOTE: I chose to emit text by default, and binary behind a flag. This mismatches with asm2wasm (and the expectations of users of a "2wasm" tool), but doesn't break any existing users of s2wasm. If s2wasm is deprecated in favor of lld, this will be the least disruptive change, and we won't have to live with awkward defaults for too long. * Emit source maps in the binary output of s2wasm * Only emit binary with an outfile specified
* Generate all s2wasm metadata in binaryen (#1440)Jacob Gravelle2018-02-261-1/+1
| | | | | | | | | * Extract comma-handling logic into a lambda function * Start emitting all metadata from binaryen - handle declares and externs * Add implementedFunctions and exports metadata * Remove EM_ASM calls from declares
* Fix stackAlloc runtime function generation for wasm backend (#1348)Derek Schuff2018-01-041-10/+9
| | | | It was returning the top of the allocated space rather than the bottom. Fix taken from @tbfleming in kripken/emscripten#5974
* Decouple wasm-linker from Emscripten glue (#1293)Jacob Gravelle2017-11-151-3/+3
|
* Emit binary function index in comment in text format, for convenience (#1232)Alon Zakai2017-10-201-7/+7
|
* Runtime.stackAlloc should grow down for wasm (#1073)jgravelle-google2017-06-281-6/+3
| | | | | | * Runtime.stackAlloc should grow down for wasm * stackAlloc should align properly; update tests
* S2wasm runtime funcs (#1027)jgravelle-google2017-06-051-0/+36
| | | | | | | | | | | | | | | | * Generate stackSave function in s2wasm * Generate stackAlloc in s2wasm * Generate stackRestore in s2wasm * Update dot_s tests for runtime functions * Add s2wasm check for exporting runtime functions * Fix flake8 for s2wasm.py * Rename wasmBuilder to builder
* use a single space for pretty printing of wasts, so massive wasts are less ↵Alon Zakai2017-03-091-45/+45
| | | | unruly (#928)
* Import memory instead of defining/exporting it when using emscripten glue (#777)Derek Schuff2016-10-141-2/+1
| | | | | The emscripten JS module code creates the memory using the native wasm APIs, and imports that into the wasm module.
* Change print order of top-level module components (#751)Derek Schuff2016-10-071-2/+1
| | | | | | | | In wast files, the spec and WABT require imports to appear before any non-import definitions (see also https://github.com/WebAssembly/wabt/issues/152). This patch re-orders visitModule in the wast printer to meet this requirement, and more or less match the order of the binary sections. Also remove extraneous whitespace around table definitions.
* Make the linker always create a table segment (#722)Derek Schuff2016-09-301-0/+2
| | | | | | | Previously a table was only created if there were any address-taken functions. New module validation rules require the existence of a table for any call-indirects to validate (even if they are dead and never called). However this use case seems common enough that we might want to make it continue to work. So the linker now always creates an empty table segment (indicating an empty table).
* Print the name of memory along with size (#720)Derek Schuff2016-09-281-1/+1
| | | | | Otherwise when we export it as "$0" it's an undefined name. The spec interpreter actually rejects this, although I think it's intended to work, given the tests in export.wast. wabt also accepts it.
* Update s2wasm for 0xc changes (#698)Derek Schuff2016-09-151-5/+5
| | | | | | | | | | | Several updates for s2wasm and its tests: Add explicit drops where they are emitted by LLVM already Convert loops (which are still modeled in the old way by LLVM) to wrap them in an explicit block (for the exit label). This also allows simplifying the loop creation (no need to post-process the implicit block which is the loop's body). After the engines update to 0xc we should update LLVM to model loops in the 0xc way, but for now it remains compatible with 0xb and 0xc. Fix the order of the calls to setTee() when creating tee_locals Add an explicit drop when creating the _start entry function wrapper if needed Update dot_s and llvm_autogenerated tests to remove store-results optimization (and few other minor updates) Fix the test auto-updater to fail if subprocesses fail There still seems to be a validation failure when building libc (I think it's from the stricter drop rules, but it may be in the source rather than the compiler), but this at least makes Binaryen's tests pa
* support expressions in segment offsetsAlon Zakai2016-08-121-3/+2
|
* Avoid double dollarsigns in s2wasm local names. (#527)Dan Gohman2016-05-191-8/+8
| | | | | | | | | * Avoid double dollarsigns in s2wasm local names. Recognize '$' as part of the .s syntax for register names, and exclude it when forming the wasm local name. This changes names like "$$0" to "$0". * Fix a comment.
* Print a newline at the end of the METADATA line. (#521)Dan Gohman2016-05-171-1/+1
|
* don't emit an extra endline in s2wasm (#506) (#508)Alon Zakai2016-05-161-1/+1
|
* Properly align the stack pointerDerek Schuff2016-04-061-2/+4
| | | | | | | | | | | | * Properly align the stack pointer By default (if no global base is given) the global base is 1, which seems wrong. In this case the stack pointer gets an address of 1, which is unaligned and definitely wrong. So, start the global base at 0 instead of 1 by default and align the stack pointer. Also factor allocation of statics into a function. * unconditionally allocate stack pointer; explicitly reserve address 0
* Handle static initializersDerek Schuff2016-04-061-1/+1
| | | | | | | LLVM emits static initializers in the ELF style, by placing pointers to the constructor functions in a .init_array section. Handle this in s2wasm for now by converting these to standard emscripten metadata.
* add explicit memory export supportAlon Zakai2016-03-151-0/+1
|
* memory max is optional, don't emit it when not necessaryAlon Zakai2016-02-171-1/+1
|
* use Return in s2wasmAlon Zakai2016-02-011-41/+25
|
* Latest LLVM + http://reviews.llvm.org/D16534Dan Gohman2016-01-251-14/+6
|
* allocate __stack_pointer completelyAlon Zakai2016-01-221-1/+1
|
* Replace the experimental/prototype-wasmate/test tests.Dan Gohman2016-01-061-0/+80
Use the llvm_autogenerated tests instead.