Index: test/mjsunit/wasm/asm-wasm.js |
diff --git a/test/mjsunit/wasm/asm-wasm.js b/test/mjsunit/wasm/asm-wasm.js |
index 31a1dc5b84e70ee86e8ceb0b414e28ba2f829654..91766eca5343143a00de9db31662a3a770be1c77 100644 |
--- a/test/mjsunit/wasm/asm-wasm.js |
+++ b/test/mjsunit/wasm/asm-wasm.js |
@@ -1265,3 +1265,51 @@ TestForeignVariables(); |
assertEquals(123, m.ifunc(456.7, 123)); |
assertEquals(123.4, m.dfunc(456, 123.4)); |
})(); |
+ |
+ |
+(function TestOr() { |
+ function Module() { |
+ "use asm"; |
+ function func() { |
+ var x = 1; |
+ var y = 2; |
+ return (x | y) | 0; |
+ } |
+ return {func: func}; |
+ } |
+ |
+ var m = _WASMEXP_.instantiateModuleFromAsm(Module.toString()); |
+ assertEquals(3, m.func()); |
+})(); |
+ |
+ |
+(function TestAnd() { |
+ function Module() { |
+ "use asm"; |
+ function func() { |
+ var x = 3; |
+ var y = 2; |
+ return (x & y) | 0; |
+ } |
+ return {func: func}; |
+ } |
+ |
+ var m = _WASMEXP_.instantiateModuleFromAsm(Module.toString()); |
+ assertEquals(2, m.func()); |
+})(); |
+ |
+ |
+(function TestXor() { |
+ function Module() { |
+ "use asm"; |
+ function func() { |
+ var x = 3; |
+ var y = 2; |
+ return (x ^ y) | 0; |
+ } |
+ return {func: func}; |
+ } |
+ |
+ var m = _WASMEXP_.instantiateModuleFromAsm(Module.toString()); |
+ assertEquals(1, m.func()); |
+})(); |