Add b_not opcode handler. Fixes in shift opcodes and in test

This commit is contained in:
e.gavrin
2014-08-21 22:52:34 +04:00
parent 7dea812364
commit b822c704e5
3 changed files with 57 additions and 18 deletions
+7 -6
View File
@@ -12,9 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
assert((5 & 2) == 0);
assert((2 & 2) == 2);
assert((5 | 2) == 7);
assert((5 | 5) == 5);
assert((5 ^ 2) == 7);
assert((5 ^ 5) == 0);
assert((5 & 2) === 0);
assert((2 & 2) === 2);
assert((5 | 2) === 7);
assert((5 | 5) === 5);
assert((5 ^ 2) === 7);
assert((5 ^ 5) === 0);
assert((~5) == -6);