Add b_not opcode handler. Fixes in shift opcodes and in test
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
assert(9 << 2 === 36);
|
||||
assert(14 << 2 === 56);
|
||||
assert((9 << 2) === 36);
|
||||
assert((14 << 2) === 56);
|
||||
|
||||
assert(9 >> 2 === 2);
|
||||
assert(-14 >> 2 === -4);
|
||||
assert((9 >> 2) === 2);
|
||||
assert((-14 >> 2) === -4);
|
||||
|
||||
assert(9 >>> 2 === 9 >> 2);
|
||||
assert((9 >>> 2) === (9 >> 2));
|
||||
|
||||
Reference in New Issue
Block a user