summaryrefslogtreecommitdiff
path: root/test/i64-add-sub.2asm.js
Commit message (Collapse)AuthorAgeFilesLines
* Clean up wasm2asm testing (#1546)Alon Zakai2018-05-131-100/+0
| | | | | * Move wasm2asm test outputs into their natural location, test/wasm2asm/ * Let people create new tests in there that ./auto_update_tests.py will auto-generate outputs for, just like all the other tests.
* Optimize equivalent locals (#1540)Alon Zakai2018-05-101-5/+3
| | | | | | | | | If locals are known to contain the same value, we can * Pick which local to use for a get_local of any of them. Makes sense to prefer the most common, to increase the chance of one dropping to zero uses. * Remove copies between a local and one that we know contains the same value. This is a consistent win, small though, around 0.1-0.2%.
* reorder locals in wasm2asm (#1482)Nathan Froyd2018-03-221-10/+8
| | | | | | | The documentation for the simplify-locals pass suggests running reorder-locals after it to clean up unnecessary locals. wasm2asm wasn't doing this, which meant that generated code had a number of unused variables. A good minimizer will probably clean that up, but let's go ahead and clean it up in wasm2asm itself.
* add the highbits global to the IR (#1483)Nathan Froyd2018-03-201-0/+1
| | | | | We were using the global to return 64-bit values from functions, but said global wasn't actually present in the IR. This omission caused the generated code to fail validation.
* create Math_{min,max} variables for wasm2asm-generated JS (#1476)Nathan Froyd2018-03-161-0/+2
| | | | | | | | | We were using Math_{min,max} in wasm2asm-generated files without declaring said functions. This decision created problems for tests, because Math_min (resp. max) would first be used on f32s, thus returning f32, and then validation would fail when it was used on f64s. The resulting changes make wasm2asm tests pass with MOZJS asm.js validation, which moves #1443 forward.
* eliminate multiple return statements for wasm2asm functions (#1448)Nathan Froyd2018-03-011-4/+2
| | | | This change eliminates one issue that prevents asm.js validation of the generated code, see #1443.
* Improve name mangling of asm.js identifiers (#1433)Daniel Wirtz2018-02-211-30/+30
| | | | | | Also refactors mangling to its own file so it can be reused by generators and consumers, i.e., where it is important to know that an import must be named 'switch_' where it otherwise would be 'switch'. * Update tests and JS dist files
* implement lowering for i64 subtraction (#1429)Nathan Froyd2018-02-141-0/+103
* fix lowering of i64 adds We're not permitted to reuse the input as temporary variables for the results. Weird things happen otherwise. * add support for lowering i64 subtraction