test262-automation 1572edd570 [javascriptcore-test262-automation] Updated curation log with latest revision sha's from export and changed files.
sourceRevisionAtLastExport: e7f9d46220 targetRevisionAtLastExport: 0210918f1e
2018-11-30 19:08:46 +00:00

26 lines
472 B
JavaScript

//@ runBigIntEnabled
let assert = {
sameValue: function(i, e) {
if (i !== e)
throw new Error(m);
}
}
function bigIntBitXor(a, b) {
return (a ^ b) ^ (a ^ 0b11n);
}
noInline(bigIntBitXor);
for (let i = 0; i < 10000; i++) {
let r = bigIntBitXor(0b11n, 0b1010n);
assert.sameValue(r, 0b1001n);
}
for (let i = 0; i < 10000; i++) {
let r = bigIntBitXor(0xfffafafaf19281fefafeafebcn, 0b1010n);
assert.sameValue(r, 0b1001n);
}