From d58adf43956c65615c9cd8d6c2f4c2a3cceff8bb Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sun, 28 Aug 2016 18:15:33 -0700 Subject: support HEAP8[x | 0| notation in asm2wasm --- test/unit.asm.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/unit.asm.js') diff --git a/test/unit.asm.js b/test/unit.asm.js index 8f0812e29..25aed0834 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -319,6 +319,11 @@ function asm(global, env, buffer) { return 0; } + function heap8NoShift(x) { + x = x | 0; + return HEAP8[x | 0] | 0; + } + function z() { } function w() { -- cgit v1.2.3