Index: test/mjsunit/compiler/regress-3812.js |
diff --git a/test/mjsunit/compiler/regress-bit-number-constant.js b/test/mjsunit/compiler/regress-3812.js |
similarity index 80% |
copy from test/mjsunit/compiler/regress-bit-number-constant.js |
copy to test/mjsunit/compiler/regress-3812.js |
index ca4cf116d95d65d9935046bcfb871362fda918d6..cfc8febc9a0c832582c2e8f47d3e38db05354808 100644 |
--- a/test/mjsunit/compiler/regress-bit-number-constant.js |
+++ b/test/mjsunit/compiler/regress-3812.js |
@@ -9,10 +9,11 @@ var foreign = {} |
var foo = (function Module(stdlib, foreign, heap) { |
"use asm"; |
function foo(i) { |
- return !(i ? 1 : false); |
+ var x = i ? (i&1) : true; |
+ if (x) return x; |
+ return false; |
} |
return {foo:foo}; |
})(stdlib, foreign, buffer).foo; |
-assertFalse(foo(1)); |
-assertTrue(foo(0)); |
+assertEquals(1, foo(1)); |