summaryrefslogtreecommitdiff
path: root/test/unit.asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r--test/unit.asm.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js
index e76ae1ef9..a25e60721 100644
--- a/test/unit.asm.js
+++ b/test/unit.asm.js
@@ -330,6 +330,18 @@ function asm(global, env, buffer) {
y = 3 ? +abort(7) : 4.5;
}
+ function loadSigned(x) {
+ x = x | 0;
+ loadSigned(HEAP8[x >> 0] << 24 >> 24);
+ loadSigned(HEAPU8[x >> 0] << 24 >> 24);
+ loadSigned(HEAP16[x >> 1] << 16 >> 16);
+ loadSigned(HEAPU16[x >> 1] << 16 >> 16);
+ loadSigned(HEAP8[x >> 0] << 24 >> 16);
+ loadSigned(HEAPU8[x >> 0] << 16 >> 24);
+ loadSigned(HEAP16[x >> 1] << 16 >> 24);
+ loadSigned(HEAPU16[x >> 1] << 24 >> 16);
+ }
+
function z() {
}
function w() {