kripken/emscripten — pull request #355 by SiggyBar (2012-04-05 14:57:32+00:00)
Title: Fixes to test_emcc for Windows.

Unfortunately one of the optimization cases still fails:
(['-o', 'something.js', '-O3', '--closure', '0'], 3, None, 0, 0)

for this assert:
assert 'HEAP8[HEAP32[' in generated or 'HEAP8[$vla1 + (($storemerge4 | 0) / 2 & -1) | 0]' in generated or 'HEAP8[$vla1 + (($storemerge4 | 0) / 2 & -1) | 0]' in generated or 'HEAP8[$vla1 + (($i_04 | 0) / 2 & -1) | 0]' in generated or 'HEAP8[$vla1 + ($i_04 / 2 & -1)]' in generated or 'HEAP8[$1 + (($i_01 | 0)/ 2 & -1) | 0]' in generated or 'HEAP8[$1 + (($i_01 | 0) / 2 & -1) | 0]' in generated, 'eliminator should create compound expressions, and fewer one-time vars'

The generated string is:
http://pastebin.com/cmgE1fJt

The corresponding generated string for the -O2 test cases is:
http://pastebin.com/4FiHLgPG