summaryrefslogtreecommitdiff
path: root/test/wasm2js/sign_ext.2asm.js
Commit message (Collapse)AuthorAgeFilesLines
* wasm2js: Sign-extend support (#2949)Alon Zakai2020-07-101-0/+43
The usual "trick" to extend: shift left so the sign bit in the small integer is now the sign bit in a 32-bit integer, then shift right to spread that sign bit out and return the lower bits to their proper place, (x << 24) >> 24.