diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-23 16:23:46 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-23 16:23:46 -0800 |
commit | 4200a73e281b3bb10c11d9bc57a9a07602ff23b4 (patch) | |
tree | 582cbaac05c1b80e899f3a3057b3a78960efc646 /src | |
parent | e8bfd932d690e13a4744a4ce514d2dee28f0a57e (diff) |
mark all precise i64 splits as float operations
Diffstat (limited to 'src')
-rw-r--r-- | src/parseTools.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 2f6cd6e8..4f68d0a1 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -2056,7 +2056,7 @@ function processMathop(item) { return i64PreciseOp('add'); } else { warnI64_1(); - return finish(splitI64(mergeI64(idents[0]) + '+' + mergeI64(idents[1]))); + return finish(splitI64(mergeI64(idents[0]) + '+' + mergeI64(idents[1]), true)); } } case 'sub': { @@ -2064,7 +2064,7 @@ function processMathop(item) { return i64PreciseOp('subtract'); } else { warnI64_1(); - return finish(splitI64(mergeI64(idents[0]) + '-' + mergeI64(idents[1]))); + return finish(splitI64(mergeI64(idents[0]) + '-' + mergeI64(idents[1]), true)); } } case 'sdiv': case 'udiv': { @@ -2072,7 +2072,7 @@ function processMathop(item) { return i64PreciseOp('divide', op[0] === 'u'); } else { warnI64_1(); - return finish(splitI64(makeRounding(mergeI64(idents[0], op[0] === 'u') + '/' + mergeI64(idents[1], op[0] === 'u'), bits, op[0] === 's'))); + return finish(splitI64(makeRounding(mergeI64(idents[0], op[0] === 'u') + '/' + mergeI64(idents[1], op[0] === 'u'), bits, op[0] === 's'), true)); } } case 'mul': { @@ -2080,7 +2080,7 @@ function processMathop(item) { return i64PreciseOp('multiply'); } else { warnI64_1(); - return finish(splitI64(mergeI64(idents[0], op[0] === 'u') + '*' + mergeI64(idents[1], op[0] === 'u'))); + return finish(splitI64(mergeI64(idents[0], op[0] === 'u') + '*' + mergeI64(idents[1], op[0] === 'u'), true)); } } case 'urem': case 'srem': { @@ -2088,7 +2088,7 @@ function processMathop(item) { return i64PreciseOp('modulo', op[0] === 'u'); } else { warnI64_1(); - return finish(splitI64(mergeI64(idents[0], op[0] === 'u') + '%' + mergeI64(idents[1], op[0] === 'u'))); + return finish(splitI64(mergeI64(idents[0], op[0] === 'u') + '%' + mergeI64(idents[1], op[0] === 'u'), true)); } } case 'bitcast': { |