aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-t2c.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-31 09:25:40 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-31 09:25:40 -0800
commit8f4be2eb565c5c612d065973f9eca6f47835efe5 (patch)
tree2537d717770b982af5a758416e521066a601b580 /tools/test-js-optimizer-t2c.js
parent8268b5a015dff2d73c2e1e9a25ea68fd0b0bdc92 (diff)
fix shift optimizer bugs
Diffstat (limited to 'tools/test-js-optimizer-t2c.js')
-rw-r--r--tools/test-js-optimizer-t2c.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-t2c.js b/tools/test-js-optimizer-t2c.js
index c5e76b63..e820548c 100644
--- a/tools/test-js-optimizer-t2c.js
+++ b/tools/test-js-optimizer-t2c.js
@@ -6,6 +6,7 @@ function shifty() {
$pPage2 = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16)];
var $ead_192394b = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16)];
// We prefer to do additions then shifts, so the shift happens last, because the shift output is known to be 32-bit. So these should not change
+ q(16 >> 2);
q($13 + 8 >> 2);
q(28 + $13 >> 2);
q(48 + $13 + 12 >> 2);