diff options
author | ToadKing <toadking@toadking.com> | 2013-08-12 23:30:49 -0400 |
---|---|---|
committer | ToadKing <toadking@toadking.com> | 2013-08-12 23:30:49 -0400 |
commit | 7466223864929d50d02407dde1da331133a0bef1 (patch) | |
tree | 60403b8061880e6aea503a20d9c45b3e678ec6ad /src/analyzer.js | |
parent | c2b064eb49ea63eec59add5751c8a9c2b80dab92 (diff) | |
parent | 3090cdd713609a9d3f749d13002a898e03cbd5e3 (diff) |
Merge branch 'incoming' of https://github.com/kripken/emscripten into fixed_openal_buffers
Conflicts:
src/library_openal.js
Diffstat (limited to 'src/analyzer.js')
-rw-r--r-- | src/analyzer.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/analyzer.js b/src/analyzer.js index 1a752305..931ce421 100644 --- a/src/analyzer.js +++ b/src/analyzer.js @@ -765,7 +765,15 @@ function analyzer(data, sidePass) { } break; } - case 'add': case 'sub': case 'sdiv': case 'udiv': case 'mul': case 'urem': case 'srem': + case 'add': case 'sub': case 'sdiv': case 'udiv': case 'mul': case 'urem': case 'srem': { + if (sourceBits < 32) { + // when we add illegal types like i24, we must work on the singleton chunks + item.assignTo += '$0'; + item.params[0].ident += '$0'; + item.params[1].ident += '$0'; + } + // fall through + } case 'uitofp': case 'sitofp': case 'fptosi': case 'fptoui': { // We cannot do these in parallel chunks of 32-bit operations. We will handle these in processMathop i++; |